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
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user