Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local FileList = fs.list("disk/") --Table with all the files and directories available
- for _, file in ipairs(FileList) do --Loop. Underscore because we don't use the key, ipairs so it's in order
- if not fs.isDir(file) then
- shell.run("cp", file, "disk/"..file)
- print(file) --Print the file name
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment