fix #1
This commit is contained in:
parent
7b8121b9c8
commit
16c5401b2e
@ -10,11 +10,9 @@ local function isFile(path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function isDir(path)
|
local function isDir(path)
|
||||||
local tmp = path.."/"..os.tmpname()
|
path = string.gsub(path.."/", "//", "/")
|
||||||
local f = io.open(tmp, "w")
|
local ok, err, code = os.rename(path, path)
|
||||||
if f then
|
if ok or code == 13 then
|
||||||
f:close()
|
|
||||||
os.remove(tmp)
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user