Function __global->clean_empty_upload_directories
Definitions
sources/uploads2.php
- Delete any empty directories.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $upload_directory | string | No | No | required parameter | N/A | N/A | Upload directory |
| $top_level | boolean | No | No | True | N/A | N/A | Whether this is the top level directory (which will not be deleted) |
Returns
- Whether this subdirectory has been deleted
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Delete any empty directories.
*
* @param string $upload_directory Upload directory
* @param boolean $top_level Whether this is the top level directory (which will not be deleted)
* @return boolean Whether this subdirectory has been deleted
*/
function clean_empty_upload_directories(string $upload_directory, bool $top_level = true) : bool
* Delete any empty directories.
*
* @param string $upload_directory Upload directory
* @param boolean $top_level Whether this is the top level directory (which will not be deleted)
* @return boolean Whether this subdirectory has been deleted
*/
function clean_empty_upload_directories(string $upload_directory, bool $top_level = true) : bool

