Difference between revisions of "Fs.getFreeSpace"
From ComputerCraft Wiki
Superaxander (Talk | contribs) |
m (number =>> integer (type)) |
||
| Line 4: | Line 4: | ||
|args=[[String(type)|string]] path | |args=[[String(type)|string]] path | ||
|api=fs | |api=fs | ||
| − | |returns=[[ | + | |returns=[[int_(type)|integer]] value of the amount of free space on the computer, 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 02:03, 13 April 2013
| returns the amount of free space in the given directory | |
| Syntax | fs.getFreeSpace(string path) |
| Returns | integer value of the amount of free space on the computer, 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) |