Difference between revisions of "Fs.getFreeSpace"
From ComputerCraft Wiki
Superaxander (Talk | contribs) |
Superaxander (Talk | contribs) |
||
Line 12: | Line 12: | ||
|output=10(can be different) | |output=10(can be different) | ||
}} | }} | ||
− | + | }} | |
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Revision as of 21:45, 27 March 2013
Function fs.getFreeSpace | |
returns the amount of free space in the given directory | |
Syntax | fs.getFreeSpace(string path) |
Returns | string the amount of free space in bytes |
Part of | ComputerCraft |
API | fs |
Examples
Example | |
Computes the amount of free space on the computer | |
Code |
print(tostring(fs.getFreeSpace("/"))) |
Output | 10(can be different) |