Gen. partnerAlgotech

PHP function disk_total_space()

Returns the total size of a directory

|
September 11, 2019

Availability in versions: PHP 4.1.0

Returns the total size of a directory

Parameters

Parameter Data type Default value Note
$directory string not A directory of the filesystem or disk partition.

Return values

float

|bool the total number of bytes as a float or false on failure.

Other resources

Official documentation for disk-total-space

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.