Fixed mkdir() bug on Posix - wasn't handling absolute paths correctly
This commit is contained in:
parent
20c6519571
commit
63057c01c2
@ -72,7 +72,7 @@
|
||||
|
||||
local builtin_mkdir = os.mkdir
|
||||
function os.mkdir(p)
|
||||
local dir = ""
|
||||
local dir = iif(path.isabsolute(p), "/", "")
|
||||
for part in p:gmatch("[^/]+") do
|
||||
dir = dir .. part
|
||||
|
||||
@ -111,4 +111,4 @@
|
||||
-- remove this directory
|
||||
builtin_rmdir(p)
|
||||
end
|
||||
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user