2020-05-02 / 3909阅 / 悠然
递归获取目录的大小。
当包含其他目录时,由get_dirsize()用于获取目录的大小。
(string)
(Required)
Full path of a directory.
(string|array)
(Optional)
Full path of a subdirectory to exclude from the total, or array of paths. Expected without trailing slash(es).
Default value: null
(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.