Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function detType(data)
- local files = {}
- local folders = {}
- for k,v in ipairs(data) do
- if fs.isDir(v) then
- folders[#folders+1] = v
- else
- files[#files+1] = v
- end
- end
- for k,v in pairs(files) do
- print(v)
- sleep(5)
- end
- return files,folders
- end
Advertisement
Add Comment
Please, Sign In to add comment