OC-PsychOS/modules/lib/shutil.lua

12 lines
171 B
Lua
Raw Normal View History

cd=fs.cd
rm=fs.rm
mkdir=fs.mkdir
2017-08-01 15:49:39 +10:00
function ls(p)
for k,v in ipairs(fs.list(p)) do print(v) end
end
2017-08-01 16:56:33 +10:00
function cat(p)
local f=io.open(p)
print(f:read("*a"))
f:close()
end