TangentFox icon

df v1.1.1

TangentFox | PRO | 08/25/19 02:11:11 AM UTC | 0 ⭐ | 565 👁️ | Never ⏰ | []
Lua |

270 B

|

None

|

0 👍

/

0 👎

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

Comments