fs.getFreeSpace

fs.getFreeSpace
Function
Syntax
fs.getFreeSpace(
  • path : string
)

Returns number space
API fs
Source CC:Tweaked (source)

Returns the free space in a directory in bytes.

ExampleGet free space
Get the free space of the computer and print it.
Code
<nowiki>
print(fs.getFreeSpace("/"))
    </nowiki>
Output
<nowiki>
100000
</nowiki>
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.