OC-PsychOS2/exec/ls.lua

11 lines
160 B
Lua
Raw Normal View History

2019-01-08 18:09:04 +11:00
local tA = {...}
tA[1] = tA[1] or "."
for _,d in ipairs(tA) do
if #tA > 1 then
print(d..":")
end
for _,f in ipairs(fs.list(d)) do
print(" "..f)
end
end