How am I supposed to understand the tmp folder in an application bundle? will it be cleared at some point?

I shoot video using my app. I was thinking about saving the captured movie in the Documents folder. I examined the project package and saw that the captured movie was saved 2 times. It is located in tmp and also in the My Documents folder. Will the tmp folder be deleted or something else? Or is it ok to store the captured movie in tmp only? Thanks in advance.

+3


source to share


1 answer


These files can be removed at some point when your application is not running.

The directory /tmp/

is for files that you do not need to save between launches of your application. The correct directory to use depends on the requirements of your application.



There is a good description of this in Apple 's File System Programming Guide in iOS Standard Directories: where files are stored and where you should put application files.

+1


source







All Articles