Difference between revisions of "Fs.getFreeSpace"
From ComputerCraft Wiki
Superaxander (Talk | contribs) |
Superaxander (Talk | contribs) |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=fs.getFreeSpace | |name=fs.getFreeSpace | ||
| − | |args=[[ | + | |args=[[String(type)|string]] path |
|api=fs | |api=fs | ||
| − | |returns=[[ | + | |returns=[[Number_(type)|number]] the amount of free space in bytes |
|desc=returns the amount of free space in the given directory | |desc=returns the amount of free space in the given directory | ||
|examples= | |examples= | ||
Revision as of 03:05, 29 March 2013
| 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) |