Advertisement
xXm0dzXx

Untitled

Apr 11th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local path = "";
  2.  
  3.  
  4. files = fs.list(path) --This will tell lua to list all the files
  5. for n=1,#files do --This will check every file
  6. if not fs.isDir(path.. "/" ..files[n])then
  7. print(files[n]) --This will print the file
  8. else
  9. print(files[n].. " <DIR> ") --This will print the folder
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement