There are four folders your app can access within it’s Sandbox.
system.ResourceDirectory – this is the folder that your main.lua lives in. It’s inside your app bundle and it is READ ONLY. If you ship a JSON file with your app to say hold configuration data, you can access it using this directory. However if it’s something you need to write too, you need to have your app copy that data to…
system.DocumentsDirectory – This is a read/write folder where your app should save settings information, databases, etc. Things in this folder will automatically be backed up to iCloud, so Apple doesn’t let you store any thing here that is downloadable from the Internet. Those have to be stored in the …
system.CachesDirectory – Doing an RSS app? Your feeds need to go here. Downloading supplemental levels for your game? Put them here. These files will hang around until the user starts running out of space in which case the can be purged. They will not be backed up to iCloud. For Android, this is the same as the …
system.TemporaryDirectory – These files can be deleted at the system’s will. You cannot assume they will survive the next time the app re-launches.
Hope this helps. [import]uid: 19626 topic_id: 29657 reply_id: 119058[/import]