get_dirsize


get_dirsize ( $directory, $max_execution_time = null )

Parameters:
  • (string) directory Full path of a directory.
  • (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.
Returns:
  • (int|false|null) Size in bytes if a valid directory. False if not. Null if timeout.
Defined at:
Change Log:
  • 5: .

Description

Gets the size of a directory.A helper function that is used primarily to check whether a blog has exceeded its allowed upload space.

Related Functions

get_site, get_sites, get_udims, image_resize, recurse_dirsize

Top Google Results

User discussions

wpseek mobile