Nothy

freespace

Jun 18th, 2016
2,343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. local freeSpace = fs.getFreeSpace("/")
  2. local freeSpaceKB = math.floor(freeSpace / 1024)
  3. local freeSpaceMB = math.floor(freeSpaceKB / 1024)
  4.  
  5. print("You have:")
  6. print(freeSpace.." bytes free;")
  7. print(freeSpaceKB.." kilobytes free;")
  8. print(freeSpaceMB.." megabytes free.")
Add Comment
Please, Sign In to add comment