Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local freeSpace = fs.getFreeSpace("/")
- local freeSpaceKB = math.floor(freeSpace / 1024)
- local freeSpaceMB = math.floor(freeSpaceKB / 1024)
- print("You have:")
- print(freeSpace.." bytes free;")
- print(freeSpaceKB.." kilobytes free;")
- print(freeSpaceMB.." megabytes free.")
Add Comment
Please, Sign In to add comment