get_dirsize ( $directory )
- (string) $directory Full path of a directory.
Defined at:Change Log:
- (int) Size of the directory in MB.
- Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Get the size of a directory.
A helper function that is used primarily to check whether
a blog has exceeded its allowed upload space.