fs.getFreeSpace
From ComputerCraft Wiki
Revision as of 03:05, 29 March 2013 by Superaxander (Talk | contribs)
| returns the amount of free space in the given directory | |
| Syntax | fs.getFreeSpace(string path) |
| Returns | number the amount of free space 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) |