I am trying to put assets in folders in my project. I am using Outlaw, windows xp, parallels 8. When I create a db for instance, it gets created in the sand box and not my project. If I move a db to my project in the base folder where main is corona can’t find it. If I move it to a data folder and reference the path as “data/dbname” corona can’t find it. How do I set up asset folders and get corona to recognize them?
system.ResourcesDirectrory is where your main.lua is. This is a READ-ONLY folder. If you plan to update your database, you must have your app copy it from system.ResourcesDirectory to system.DocumentsDirectory, or just initialize it there.
system.DocumentsDirectory on the simulator is the sandbox folder (along with system.TemporaryDirectory and system.CachesDirectory). These are writable locations for your app. Once you are on device, these are the only folders you can access and write to.
Rob
Thanks Rob,
It is confusing not seeing my data in the project folder and trying to use the recommended project design and not be able to get it to work.
system.ResourcesDirectrory is where your main.lua is. This is a READ-ONLY folder. If you plan to update your database, you must have your app copy it from system.ResourcesDirectory to system.DocumentsDirectory, or just initialize it there.
system.DocumentsDirectory on the simulator is the sandbox folder (along with system.TemporaryDirectory and system.CachesDirectory). These are writable locations for your app. Once you are on device, these are the only folders you can access and write to.
Rob
Thanks Rob,
It is confusing not seeing my data in the project folder and trying to use the recommended project design and not be able to get it to work.