2018-05-31 11:00:44 -07:00

17 lines
294 B
Lua

local path = ...
path = path[1]
if path then
if not fs.exists(path) then
if fs.mkdir(path) then
print("Created directory "..path)
else
print("Could not create directory "..path)
end
else
print(path.." already exists")
end
else
print("Must specify path (see help mkdir)")
end