2020-05-01 / 5793阅 / 悠然
Get the size of a directory.
A helper function that is used primarily to check whether a blog has exceeded its allowed upload space.
(string)
(Required)
Full path of a directory.
(int)
(Optional)
Maximum time to run before giving up. In seconds. The timeout is global and is measured from the moment WordPress started to load.
Default value: null
(int|false|null) Size in bytes if a valid directory. False if not. Null if timeout.