file handeling question

hi there…

is there a way you guys know of copying files from one location to another ?

let’s say i have an image in: “pics/mainMenu/background.jpg” and i want to copy it to my Documents directory and rename it to bg.jpg do you know how to do it ?

is there a way for my to open folders in my documents directory … let’s say i would want to copy an image or a file to Documents Directory in a folder called “menu” … ?

This is definitely possible, but I’m not sure how with the newer LFS (Lua File System) - though the simple way is to simply open the file and copy it’s contents into a new file with the desired file name.

The better solution is to use the LFS API, first blogged here: http://coronalabs.com/blog/2012/05/08/luafilesystem-lfs-tutorial/

Follow the links in that post to find the full, official documentation.

This is definitely possible, but I’m not sure how with the newer LFS (Lua File System) - though the simple way is to simply open the file and copy it’s contents into a new file with the desired file name.

The better solution is to use the LFS API, first blogged here: http://coronalabs.com/blog/2012/05/08/luafilesystem-lfs-tutorial/

Follow the links in that post to find the full, official documentation.