deleteDirectory.php
Table of Contents
Functions
- deleteDirectory() : bool
- Deletes a directory recursively.
Functions
deleteDirectory()
Deletes a directory recursively.
deleteDirectory(string|array<string|int, mixed>|null $path[, bool $assertable = true ][, bool $isReadable = true ][, bool $isWritable = true ]) : bool
Parameters
- $path : string|array<string|int, mixed>|null
-
Directory or segments to remove.
- $assertable : bool = true
-
Whether to validate the resulting path. Defaults to true.
- $isReadable : bool = true
-
Check if the directory is readable (Default true).
- $isWritable : bool = true
-
Check if the directory is writable (Default false).
Tags
Return values
bool —Returns true if the directory is removed.