iPhone storage in tmp directory

The OS will delete the temp directory on restart and at other indeterminate points. If you need to store something somewhere that you don’t want backed up then use the cache directory. That will not be deleted and will not be backed up.

Your application will not be running when the temp is deleted nor will you have an opportunity to react to that deletion. This is fairly common behavior on all unix based platforms (OS X does this as well).

Leave a Comment