diff --git a/src/base/os.lua b/src/base/os.lua index 5fe554fe..861cafb9 100644 --- a/src/base/os.lua +++ b/src/base/os.lua @@ -599,7 +599,8 @@ return "echo " .. v end, mkdir = function(v) - return "mkdir " .. path.translate(path.normalize(v)) + v = path.translate(path.normalize(v)) + return "IF NOT EXIST " .. v .. " (mkdir " .. v .. ")" end, move = function(v) return "move /Y " .. path.translate(path.normalize(v))