Explorar el Código

fixed fs.copy

oops
master
XeonSquared hace 4 años
padre
commit
3fed8a5985
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      module/fs.lua

+ 5
- 1
module/fs.lua Ver fichero

@@ -68,7 +68,11 @@ function fs.copy(from,to) -- string string -- boolean -- copies a file from *fro
if not of or not df then
return false
end
df:write(of:read("*a"))
local tmp
repeat
tmp = of:read(2048)
df:write(tmp or "")
until not tmp
df:close()
of:close()
return true


Cargando…
Cancelar
Guardar