fs.getFreeSpace
| fs.getFreeSpace Function | |
|---|---|
|
Syntax fs.getFreeSpace(
| |
| Returns | number space |
| API | fs |
| Source | CC:Tweaked (source) |
Returns the free space in a directory in bytes.
|
|||
| Get the free space of the computer and print it. | |||
| Code | <nowiki>
print(fs.getFreeSpace("/"))
</nowiki>
|
||
| Output | <nowiki>
100000
</nowiki>
|
||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.