Difference between revisions of "Fs.getFreeSpace"
From ComputerCraft Wiki
Superaxander (Talk | contribs) |
Superaxander (Talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | + | {{lowercase}} | |
| + | {{Function | ||
| + | |name=fs.getFreeSpace | ||
| + | |args=[[String_(type)|string]] path | ||
| + | |api=fs | ||
| + | |returns=[[String_(type)|string]] the amount of free space in bytes | ||
| + | |desc=returns the amount of free space in the given directory | ||
| + | |examples= | ||
| + | {{Example | ||
| + | |desc=Computes the amount of free space on the computer | ||
| + | |code=print(tostring(fs.getFreeSpace("/"))) | ||
| + | |output=10(can be different) | ||
| + | }} | ||
| − | + | [[Category:Lua_Core_Functions]] | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Revision as of 21:45, 27 March 2013
{{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=
| Computes the amount of free space on the computer | |
| Code |
print(tostring(fs.getFreeSpace("/")))
|
| Output | 10(can be different) |