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

17 lines
282 B
Lua

local path = ...
path = path[1]
if path then
if fs.exists(path) then
if fs.rmdir(path) then
print("Removed directory "..path)
else
print(path.." is not a directory")
end
else
print(path.." does not exist")
end
else
print("Must specify path (see help rmdir)")
end