wireRmdir() function
Remove a directory (optionally recursively)
This is procedural version of the $files->rmdir()
method. See that method for more options.
Please note this method is and thus not intended to be called directly.
Internal usage
// basic internal usage
$bool = wireRmdir(string $path);
// internal usage with all arguments
$bool = wireRmdir(string $path, bool $recursive = false);
Arguments
Name | Type(s) | Description |
---|---|---|
$path | string | |
$recursive (optional) | bool | If set to true, all files and directories in $path will be recursively removed as well. |
Return value
bool
See Also
Functions methods and properties
API reference based on ProcessWire core version 3.0.251