Well, you probably want the allow_multiple_selects
option. Then you’ll get a table of absolute filenames back. Roughly, for each file you would want to do something like this (untested):
local original = io.open(full_path, "rb")
local contents = original:read("*a") -- copy the contents
original:close()
local pos = full_path:find("/") -- or "\\" ... you actually want the last one, so this isn't quite right
local name = full_path:sub(pos + 1) -- get just the file name itself
local new_file = io.open(system.pathForFile(name, system.DocumentsDirectory), "wb")
new_file:write(contents) -- finish the copy
new_file:close()
As I said, it’s a bit rough, but that’s the general idea.