fs.getFreeSpace
From ComputerCraft Wiki
Revision as of 02:04, 13 April 2013 by AfterLifeLochie (Talk | contribs) (Nerrrrrr typo (not mine!))
| returns the amount of free space in the given directory | |
| Syntax | fs.getFreeSpace(string path) |
| Returns | integer value of the amount of free space on the computer, in bytes |
| Part of | ComputerCraft |
| API | fs |
Examples
| Computes the amount of free space on the computer | |
| Code |
print(tostring(fs.getFreeSpace("/")))
|
| Output | 10(can be different) |