POSIX path fix (last checkin) didn't work on Windows; fixed

This commit is contained in:
starkos 2008-11-13 01:08:22 +00:00
parent 63057c01c2
commit 5e0856379c

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 = iif(path.isabsolute(p), "/", "") local dir = iif(p:startswith("/"), "/", "")
for part in p:gmatch("[^/]+") do for part in p:gmatch("[^/]+") do
dir = dir .. part dir = dir .. part