Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local root = fs.list("/")
- local drives = {}
- for i=1, #root do
- local path = root[i]
- drives[fs.getDrive(path)] = fs.getFreeSpace(path)
- end
- print("Filesystem Available")
- for drive, bytes in pairs(drives) do
- print(drive, string.rep(" ", math.max(11 - #drive, 1)), bytes)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement