Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/recurse dirsize

This page redirects to an external site: https://developer.wordpress.org/reference/functions/recurse_dirsize/

This page is marked as incomplete. You can help Codex by expanding it.

Description

Get the size of a directory recursively.

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

Usage

<code style="color: #000000"><span style="color: #0000BB"><?php recurse_dirsize</span><span style="color: #007700">( </span><span style="color: #0000BB">$directory </span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></code>

Parameters

$directory
(string) (required) Directory to recurse
Default: None

Return Value

(integer) 
The size of the directory

Examples


Notes

Change Log

Since: MU

Source File

recurse_dirsize() is located in wp-includes/ms-functions.php

Related

 

See also index of Function Reference and index of Template Tags.