getTotalDiskSpace.php
Table of Contents
Functions
- getTotalDiskSpace() : float
- Returns the total size, in bytes, of the filesystem hosting a directory.
Functions
getTotalDiskSpace()
Returns the total size, in bytes, of the filesystem hosting a directory.
getTotalDiskSpace([string $directory = '.' ]) : float
Typed wrapper around disk_total_space(): an invalid path raises a
FileException instead of returning false.
Parameters
- $directory : string = '.'
-
A directory (or path) on the filesystem to inspect (default:
'.').
Tags
Return values
float —The total number of bytes of the filesystem.