Page 3 of 3

Re: Identifying App folder Redux

Posted: Thu Feb 06, 2020 9:44 pm
by bogs
jmk_phd wrote: Thu Feb 06, 2020 9:28 pm -- I'm still inclined to cut my losses by storing the resources in the Documents folder.
That is certainly the way I'd go, if you don't want to worry about which OS your writing for ...
Dictionary wrote: specialFolderPath("Documents") is listed for -
Windows folder names, #3:
"documents": The current user's "My Documents" folder
On Mac OS systems, #4:
"documents": The current user's documents folder
On iOS systems, only create files in the "documents", "cache" and "temporary" folders.
"documents": The folder in which document data should be stored (backed up by iTunes on sync)
On Android systems, note that the file system is case-sensitive.
"documents": The folder where application-specific data can be placed (typically valuable)
On Linux systems, the following folderIdentifier values are supported:
"home": The current user's home folder
LOL, of course, Linux can't be trusted to run that way at all, good thing you don't write for that one :P

Re: Identifying App folder Redux

Posted: Thu Feb 06, 2020 10:08 pm
by jacque
Using the documents folder isn't just for mobile apps any more, desktop OSs are becoming more and more sensitive to file permissions due to malware prevention.

I think your update plan is solid. In fact, it sounds like it would be pretty easy to auto-update the few small files. Provide an Update button somewhere in the app, then download the files from your server and copy them over to the documents folder. They'd automatically replace any existing ones there.