1
0
mirror of https://github.com/Adorable-Catgirl/Zorya-NEO.git synced 2024-09-22 03:08:51 +10:00
Zorya-NEO/mods/util_luaconsole/arc/bin/ls.lua

11 lines
185 B
Lua
Raw Normal View History

2020-06-06 10:45:08 +10:00
local arg = ...
if not _DRIVE then
for d in component.list("filesystem") do
print(d)
end
else
local t = component.invoke(_DRIVE, "list", arg)
for i=1, #t do
print(t[i])
end
end