Hello,
PERSISTENT DOWNLOADED DATA IN CACHES FOLDER
I’m working on a App that is heavy dependent on Downloadable content. And since iCloud was introduced, Apple doesn’t allow to save Images or “big” content in the Documents folder. You have to store them in the Caches folder. Applications are being rejected when storing data in the Docs folder, see:
Corona already supports the Caches folder via: system.CachesDirectory.
Still, the data in the Caches folder can be deleted anytime, it is not totally safe.
There is a way to avoid that by adding the “com.apple.MobileBackup” attribute, i.e. donotbackup.
But that is something Native, so Corona needs a way for us to flag that.
From official documentation: Use this attribute with data that can be recreated but needs to persist even in low storage situations for proper functioning of your app or because customers expect it to be available during offline use. This attribute works on marked files regardless of what directory they are in, including the Documents directory..
CREATION OF FOLDERS VIA CORONA CODE
Corona file manipulation has also to allow the creation of folders. Again, as I’m working on a App that is heavy dependent on Downloadable content, it has 100+ downloadable files and placing them all in the same folder is just a mess. [import]uid: 10990 topic_id: 24785 reply_id: 324785[/import]