This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
OC-PsychOS2
mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
fixed fs.copy
oops
master
XeonSquared
4 years ago
parent
f132c2349f
commit
3fed8a5985
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
module/fs.lua
+ 5
- 1
module/fs.lua
View File
@@ -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
Write
Preview
Loading…
Cancel
Save