From ComputerCraft Wiki
Revision as of 16:29, 10 April 2014 by MKlegoman357 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Grid Redstone.png  Function fs.getFreeSpace
Gets the remaining space in the given directory. The directory may refer to the computer’s local hard drive or to a floppy disk.
Syntax fs.getFreeSpace(string path)
Returns number free space in bytes
Part of ComputerCraft
API fs


Grid paper.png  Example
Prints the amount of free space on the computer.
Output Depends on your in-game computer's storage.