소스 검색

fixed fs.copy

oops
master
XeonSquared 4 년 전
부모
커밋
3fed8a5985
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      module/fs.lua

+ 5
- 1
module/fs.lua 파일 보기

@@ -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


불러오는 중...
취소
저장