Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local path = "";
- files = fs.list(path) --This will tell lua to list all the files
- for n=1,#files do --This will check every file
- if not fs.isDir(path.. "/" ..files[n])then
- print(files[n]) --This will print the file
- else
- print(files[n].. " <DIR> ") --This will print the folder
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement