TwistPHP Documentation

directorySize

File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

directorySizeGet the full size in bytes of any directory by providing its full path. Optional parameter to format the return data in a human readable format.

Parameters

Name Type Description
$dirPathstringn/a
[$blFormatOutput = false]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$dirPath '/home/user/public_html/twist';
$blFormatOutput false;

//Call the function directorySize with the example vars
Twist::File() -> directorySize($dirPath$blFormatOutput);