12 lines
171 B
Lua
12 lines
171 B
Lua
cd=fs.cd
|
|
rm=fs.rm
|
|
mkdir=fs.mkdir
|
|
function ls(p)
|
|
for k,v in ipairs(fs.list(p)) do print(v) end
|
|
end
|
|
function cat(p)
|
|
local f=io.open(p)
|
|
print(f:read("*a"))
|
|
f:close()
|
|
end
|