How does one create a read/write folder on the same level as the Documents directory? Is there a way to set the directory used in file sharing on iOS between iTunes and an app, or is it hard coded to the Documents directory?
Asked
Active
Viewed 1,017 times
1 Answers
2
On a non-jailbroken device, you cannot create a read/write folder on the same level as the Documents directory. Additionally, there is not way to change the directory used in file sharing.
If you need to create files and want to keep them away from file sharing, there are other writable directories that can be used. This SO question & answer deals with that quite well.
-
So every file written to the documents directory, even subfolders will be accessible in the app's file sharing window in iTunes, or is it possible to hide files, such as private files for the app? – some_id Mar 04 '13 at 01:11
-
Put them in another folder, instead of the documents folder. – borrrden Mar 04 '13 at 01:30
-
To date, iTunes does not show any "dot" files in the Documents directory. If you name a file or folder with a leading dot in the name, iTunes will not show that to the user. – rmaddy Mar 04 '13 at 03:27
-
Nice find but I think using the Library Directory removes hard coded naming. – some_id Mar 04 '13 at 05:07