fs.getFreeSpace
From ComputerCraft Wiki
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 |
Examples
Example | |
Prints the amount of free space on the computer. | |
Code |
print(fs.getFreeSpace("/")) |
Output | Depends on your in-game computer's storage. |