fs.getFreeSpace

From ComputerCraft
Jump to navigation Jump to search

fs.getFreeSpace
Function
Syntax
fs.getFreeSpace()
Returns number space
API fs
Source CC:Tweaked (source)

Returns the free space in a directory in bytes.

ExampleExampleGet free space
Get the free space of the computer and print it.
Code
print(fs.getFreeSpace("/"))
Output
100000