octacian cfc1bb4e79 OctOS: Add mkdir, rmdir, and cpdir commands
Documented in `commands.md`. Allow manipulation of directories.
2017-03-28 17:18:06 -07:00

17 lines
312 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