Skip to content

Commit a991162

Browse files
author
TRF2SGM
committed
#136 path valid if error code 17 by os.rename
1 parent 8210c56 commit a991162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

z.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ function os.path.exists(name)
580580
end
581581
local ok, err, code = os.rename(name, name)
582582
if not ok then
583-
if code == 13 then
583+
if code == 13 or code == 17 then
584584
return true
585585
elseif code == 30 then
586586
local f = io.open(name,"r")

0 commit comments

Comments
 (0)