Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = { ... }
- i = 1
- if args[1] then
- currentDir = args[1]
- else
- currentDir = "/"
- end
- if args[2] then
- i = args[2]
- end
- function getFS()
- listing = fs.list(currentDir)
- for k, v in pairs(listing) do
- if k < i+14 then
- if i < k then
- print (k .. " " .. v)
- end
- else
- end
- end
- end
- getFS()
Advertisement
Add Comment
Please, Sign In to add comment