Leon_Lejon

chkdisk.lua

May 10th, 2024 (edited)
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Drive capacity is", fs.getCapacity("/"),"bytes", "while", fs.getFreeSpace("/"),"bytes", "are free.")
  2. UsedSpace = fs.getCapacity("/")-fs.getFreeSpace("/")
  3. print("Which means", UsedSpace,"bytes", "are being used.")
  4. term.setTextColor(colors.green)
  5. print("Use 'dir' to explore the structure of your hard drive!")
  6. term.setTextColor(colors.white)
  7.  
Advertisement
Add Comment
Please, Sign In to add comment