Closed thenicnic closed 2 years ago
Nevermind, found a working way:
local discContent = FileSystem.GetFilesAndDirectories("Dvd:\\" .. "*")
for i, item in pairs(discContent) do if item.Attributes == 1 then --file elseif item.Attributes == 17 then --directory end end
I try to iterate through the following table:
table FileSystem.GetFilesAndDirectories( string path );
But I do not manage to get a valid output, neither by iterating a "key, value" loop nor a "index, data" loop. Also
local discContent = FileSystem.GetFilesAndDirectories("Dvd:\\");
ret = Script.ShowMessageBox("Test", tprint(discContent), "OK")
orret = Script.ShowMessageBox("Test", tostring(tprint(discContent)), "OK")
do not work.
I'd like to have a script for quick importing games in a file system directory (since Disc to GOD does not work with OG Xbox games) but I'm new to Lua.