forked from izaya/OC-PsychOS2
fixed fs.copy
oops
This commit is contained in:
parent
f132c2349f
commit
3fed8a5985
@ -68,7 +68,11 @@ function fs.copy(from,to) -- string string -- boolean -- copies a file from *fro
|
|||||||
if not of or not df then
|
if not of or not df then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
df:write(of:read("*a"))
|
local tmp
|
||||||
|
repeat
|
||||||
|
tmp = of:read(2048)
|
||||||
|
df:write(tmp or "")
|
||||||
|
until not tmp
|
||||||
df:close()
|
df:close()
|
||||||
of:close()
|
of:close()
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user