Creeper9207

Untitled

Feb 25th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. args = { ... }
  2. i = 1
  3. if args[1] then
  4. currentDir = args[1]
  5. else
  6. currentDir = "/"
  7. end
  8. if args[2] then
  9. i = args[2]
  10. end
  11.  
  12. function getFS()
  13. listing = fs.list(currentDir)
  14. for k, v in pairs(listing) do
  15. if k < i+14 then
  16. if i < k then
  17. print (k .. " " .. v)
  18. end
  19. else
  20. end
  21. end
  22. end
  23. getFS()
Advertisement
Add Comment
Please, Sign In to add comment