diff options
Diffstat (limited to '')
-rw-r--r-- | eatit.lua | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -27,14 +27,14 @@ local function tablelength(T) end local function fileexists(name) - local ok, err, code = os.rename(name, name) - if not ok then - if code == 13 then - -- Permission denied, but it exists - return true - end - end - return ok, err + local ok, err, code = os.rename(name, name) + if not ok then + if code == 13 then + -- Permission denied, but it exists + return true + end + end + return ok, err end local function testforslash(str) |