LNETeam

Untitled

Jul 11th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1.  
  2. function detType(data)
  3.     local files = {}
  4.     local folders = {}
  5.     for k,v in ipairs(data) do
  6.         if fs.isDir(v) then
  7.             folders[#folders+1] = v
  8.         else
  9.             files[#files+1] = v
  10.         end
  11.     end
  12.     for k,v in pairs(files) do
  13.         print(v)
  14.         sleep(5)
  15.     end
  16.     return files,folders
  17. end
Advertisement
Add Comment
Please, Sign In to add comment