Search code examples
iosios5nsdocumentdirectory

iOS storing files rules - Storing audio files on iOS app


I need to be sure I am doing the right thing:

In my app the user can download audio files from the server. I don't want those big file to be backed up as he can re download them when ever he needs to.

My app is addressed for iOS 4.0 and above.

So as I understand I need to store the files is the documents directory and set a flag for the directory to not back up ?

Am I correct ?


Solution

  • Instead of putting them into the "Documents" directory (which gets backed up to the cloud), why not put your audio files into a "Cache" directory (specifically "/Library/Cache", which does not get backed up)?

    Here's another question here on Stackoverflow that may help give a further answer to your question.