recurse_dirsize


recurse_dirsize ( $directory, $exclude = null )

Parameters:
  • (string) $directory Full path of a directory.
  • (string) $exclude Optional. Full path of a subdirectory to exclude from the total.
Returns:
  • (int|false) Size in MB if a valid directory. False if not.
Defined at:
Change Log:
  • M: U

Description

Get the size of a directory recursively.

Used by get_dirsize() to get a directory's size when it contains other directories.

Related Functions

get_dirsize, _recurse_do_blocks, remove_image_size, rest_parse_date, image_resize

Top Google Results

User discussions

wpseek mobile