← All docs

disk_free_space()

Returns available space on filesystem or disk partition.

disk_free_space()

function disk_free_space(string $directory): float

Returns available space on filesystem or disk partition.

Parameters:

  • $directory (string)

Returns: float

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how disk_free_space is implemented in the compiler, see the internals page.