diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-10-20 07:28:32 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-10-20 07:28:32 +0200 |
commit | 12d27922f7bb7f466b5d476fa2c1ddc08a300513 (patch) | |
tree | cf8576b89e743d1684e8409441c9c0e84d199118 /lualibs-file.lua | |
parent | 349d46eb1e7f1d13f5d823e818216b5ef1cee566 (diff) | |
download | lualibs-12d27922f7bb7f466b5d476fa2c1ddc08a300513.tar.gz |
sync with Context as of 2016-10-20
Signed-off-by: Philipp Gesang <phg@phi-gamma.net>
Diffstat (limited to 'lualibs-file.lua')
-rw-r--r-- | lualibs-file.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lualibs-file.lua b/lualibs-file.lua index b6822e9..f2a27ad 100644 --- a/lualibs-file.lua +++ b/lualibs-file.lua @@ -607,14 +607,17 @@ function file.robustname(str,strict) end end -file.readdata = io.loaddata -file.savedata = io.savedata +local loaddata = io.loaddata +local savedata = io.savedata + +file.readdata = loaddata +file.savedata = savedata function file.copy(oldname,newname) if oldname and newname then - local data = io.loaddata(oldname) + local data = loaddata(oldname) if data and data ~= "" then - file.savedata(newname,data) + savedata(newname,data) end end end |