Get list of files in dir and its subdirs
Variant I:
for filename in io.popen('find ./internet -type f -printf "%f\n"'):lines() do
print(filename)
end
Variant II:
local handle = io.popen('find ./internet -type f -printf "%f\n"')
local result = handle:read("*a")
handle:close()
print(result)
sdmrnv, 2022-08-24 [1.309ms, s]