Posted 14 December 2013 - 06:05 AM
Hello.
I'm in some kinda trouble with a backup function i just made…
this wierd line – ( the line with fs.move )
makes something really wierd..
When the program runs that function it returns:
backup:8: Unsupported mode
And i don't know why?
EDIT:
A Note:
the print(main..v) returns ".test/test.cfg"
Please help
Thanks in Advance
I'm in some kinda trouble with a backup function i just made…
local files={"test.cfg","test.reg"}
local place="testbackup/"
local main=".test/"
if fs.isDir(place) then fs.delete(place) end
fs.makeDir(place)
for k,v in pairs(files) do
print(main..v)
fs.move(main..v,place..v)
end
this wierd line – ( the line with fs.move )
makes something really wierd..
When the program runs that function it returns:
backup:8: Unsupported mode
And i don't know why?
EDIT:
A Note:
the print(main..v) returns ".test/test.cfg"
Please help
Thanks in Advance
Edited on 14 December 2013 - 05:07 AM