blob: ebf3571f9f432e0e163a997f212eda99b2c6f61a [file] [log] [blame] [raw]
local args = shell.parse(...)
if #args < 2 then
print("Usage: cp <from> <to>")
return
end
local from, reason = shell.resolve(args[1])
local to, reason = shell.resolve(args[2])
local result, reason = fs.copy(from, to)
if not result then
print(reason)
end