Fixed mkdir() bug on Posix - wasn't handling absolute paths correctly

This commit is contained in:
starkos 2008-11-13 01:04:04 +00:00
parent 20c6519571
commit 63057c01c2
2 changed files with 16 additions and 16 deletions

View File

@ -72,7 +72,7 @@
local builtin_mkdir = os.mkdir local builtin_mkdir = os.mkdir
function os.mkdir(p) function os.mkdir(p)
local dir = "" local dir = iif(path.isabsolute(p), "/", "")
for part in p:gmatch("[^/]+") do for part in p:gmatch("[^/]+") do
dir = dir .. part dir = dir .. part

File diff suppressed because one or more lines are too long