Search code examples
iphoneiosfilefile-sharing

How can I exclude a file from iTunes file sharing?


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.


Solution

  • 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.