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