All right, this is so helpful.
local function refreshFiles(path)
local files = FileSystem.GetFiles(path .. '\\')
for _, file in pairs(files) do
print("refresh file " .. _ .. " " .. file.Name)
end
for _, dir in pairs(FileSystem.GetDirectories(path .. '\\')) do
refreshFiles(path .. '\\' .. dir)
end
end
function main()
for _, drive in pairs(FileSystem.GetDrives()) do
refreshFiles(drive.MountPoint)
end
end
Why does this code print nothing? What are you supposed to pass to FileSystem.GetFiles and FileSystem.GetDirectories, because they always return nil.
Edit: what the fuck, lol. Sorry for the mess with the code, this forum sucks