fs.getFreeSpace

From ComputerCraft Wiki
Revision as of 21:45, 27 March 2013 by Superaxander (Talk | contribs)

Jump to: navigation, search

{{Function |name=fs.getFreeSpace |args=string path |api=fs |returns=string the amount of free space in bytes |desc=returns the amount of free space in the given directory |examples=

Grid paper.png  Example
Computes the amount of free space on the computer
Code
print(tostring(fs.getFreeSpace("/")))
Output 10(can be different)