Reputation: 27373
iTunes file sharing works by exposing all the files in /Documents
But I would want to explicitly exclude certain files. Is this possible?
UPDATED:
Specifically, one of my ad network SDK is storing a mraid.js
in Documents.
Upvotes: 0
Views: 1048
Reputation: 107221
There is no way to exclude files from File Sharing.
The files you need to share should be put under Documents directory and the files which you don't want to share should be kept in other directories. It'll solve the issue.
Upvotes: 0
Reputation: 318884
If you don't want a file shared, don't store it in the Documents
folder. Use the Application Support
folder for example.
Another option is that iTunes won't show any files or folders from the Documents
folder that start with a dot. You could rename the files you don't want to share with a dot or put them in a subfolder whose name begins with a dot.
Upvotes: 1
Reputation: 3317
Try looking at This Question. Also, depending on what you are storing, you can try using the NSUserDefaults instead.
Upvotes: 0