breautek commented on issue #635:
URL: 
https://github.com/apache/cordova-plugin-file/issues/635#issuecomment-2344304378

   > Files persist across app restarts and upgrades, but this directory can be 
cleared whenever the OS desires. Your app should be able to recreate any 
content that might be deleted.
   
   This applies to the cache folder (`cordova.file.cacheDirectory`)
   
   > Files may persist across app restarts, but do not rely on this behavior. 
Files are not guaranteed to persist across updates. Your app should remove 
files from this directory when it is applicable, as the OS does not guarantee 
when (or even if) these files are removed.
   
   This applies to the temp folder (`cordova.file.tempDirectory`)
   
   > The OS may clear the contents of this directory whenever it feels it is 
necessary, but do not rely on this. You should clear this directory as 
appropriate for your application.
   
   Also applies to the temp directory.
   
   So when using these directories the user or the OS could clear these folders 
at any time. The exact algorithm is not known or provided by Apple, but 
generally speaking the OS will likely start deleting temp/cache directories of 
apps that hasn't been used in awhile and when it needs to start freeing up disk 
space because the hard drive is getting full.
   
   These directories are intended for storing temporary data that will be 
cleaned up by your application in the near future. It's not for intended for 
long-term storage of user data. `cordova.file.dataDirectory` will be a better 
fit, the OS will not clear that data unless if the user instructs the OS to do 
so, or if the user uninstalls your app.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to