So like, if i have this folders:
rom / \ apis programs
is it possible to automatically scan the rom, the apis and the program folder?
I can make this easy script to scan one directory:
function get( dir, isLookingFiles )
tFolders = {}
tFiles = {}
for k, v in pairs(fs.list(dir)) do
if fs.isDir(v) then
tFolders[k] = v
else
tFiles[k] = v
end
end
if isLookingFiles then return tFiles else return tFolders end
end
Edited by RoD, 11 June 2014 - 04:38 PM.












