Skip to content

Commit f63a832

Browse files
author
skywind3000
committed
improve errno handling in os.path.exists
1 parent f92ad79 commit f63a832

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
@@ -454,7 +454,7 @@ function os.path.exists(name)
454454
elseif name:sub(-1) == '/' and code == 20 and (not windows) then
455455
local test = name .. '.'
456456
ok, err, code = os.rename(test, test)
457-
if code == 16 or code == 13 then
457+
if code == 16 or code == 13 or code == 22 then
458458
return true
459459
end
460460
end

0 commit comments

Comments
 (0)