Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_dirsize()

3 tags 1 category

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

Inputs: $directory (string): Full path of a directory. $max_execution_time (int): 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.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…