Advertisement
TangentFox

df v1.1.1

Aug 24th, 2019
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local root = fs.list("/")
  2. local drives = {}
  3.  
  4. for i=1, #root do
  5.   local path = root[i]
  6.   drives[fs.getDrive(path)] = fs.getFreeSpace(path)
  7. end
  8.  
  9. print("Filesystem   Available")
  10. for drive, bytes in pairs(drives) do
  11.   print(drive, string.rep(" ", math.max(11 - #drive, 1)), bytes)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement