Skip to content

Commit a3d4f5d

Browse files
authored
Merge pull request #138 from FlTr/path-exists-17
path valid if error code 17 by os.rename
2 parents 8210c56 + a991162 commit a3d4f5d

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)