File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
directorySize
— Get 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.
Name | Description |
---|---|
$dirPath | n/a |
[$blFormatOutput = false] | n/a |
void — No return information has been documented for this function.
<?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);