Core Function
View Source on Trac ↗ get_dirsize()
get_dirsize( mixed $directory, mixed $max_execution_time = null ) Gets the size of a directory.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $directory string | Full path of a directory. Required |
| int | $max_execution_time Maximum time to run before giving up. In seconds. The timeout is global and is measured from the moment WordPress started to load. Required |
Return Value
((int)
| false | null) Size in bytes if a valid directory. False if not. Null if timeout.
Function Information
Since Version
MU (3.0.0)
Source File
wp-includes/functions.php
Advertisement