02-28-2014 02:19 PM
I noticed at times folders created by my app using the picker will be such that files my app makes/wants-to-make will not write or the won't be read by my app.
I have another app by another developer that is cascades and has a function to fix folder permissions. I ran it on the folders my app made and it fixed the read/write problems.
Can anyone point me in the right direction to fix folder permissions? I suppose it is qt cpp code. Any help is appreciated.
03-07-2014 02:33 PM
If you use QDir to create folders as part of app initialization, it sets the correct permissions. Not sure exactly what the other developers code uses exactly but I would suggesting checking the reference documentation for QDir, QFile and QFileInfo and I suspect that you wlll find a function for checking and updating permissions.
03-07-2014 02:40 PM
03-13-2014 11:57 AM - edited 03-13-2014 12:01 PM
The user uses the OS FilePicker to create any folders so it's not my app that does it. The user only chooses a folder in which to save files that will be placed in said folder. It only happens on SD Card folder-saves.
Does anyone know if there are issues with inodes when using a Media Card on BB10?
as to garydev: I have all the shared permissions granted.
03-13-2014 02:42 PM
QFileInfo has a couple of methods for checking / testing permissions although I don't see a mechanism for changing them. Start from there:
and see if that leads you to a good solution.
I am concerned that you could create a folder with the FilePicker that has the wrong permissions. This sounds like a bug or potentially could be a result of a hardware issue with your particular SD card. I recommend testing with another SD card to see if the same thing occurs and if so, file a bug on the issue tracker so that we can get the dev teams to investigate.