1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-14 19:59:48 +00:00

fixed wrong return value from os.path.exists

This commit is contained in:
skywind3000
2019-09-06 01:21:28 +08:00
parent e08f5beca4
commit bdab27db1b

3
z.lua
View File

@@ -548,6 +548,9 @@ end
-- file or path exists
-----------------------------------------------------------------------
function os.path.exists(name)
if name == '/' then
return true
end
local ok, err, code = os.rename(name, name)
if not ok then
if code == 13 then