OC-PsychOS/exec/ls.lua

8 lines
152 B
Lua
Raw Normal View History

local tA = {...}
if #tA == 0 then tA[1] = (os.getenv("PWD") or "/") end
for _, p in ipairs(tA) do
for k,v in ipairs(fs.list(p)) do
print(v)
end
end