This function allows you to delete a directory with all contained subdirectories and files.
Parameter |
Type |
Description |
|---|---|---|
$path |
string |
Complete directory path |
The function returns true in case it was successful, otherwise false.
Example:
…
// Deleting the directory c:\temp\test incl. all subdirectories and contained files
$this->removeDir('c:\temp\test');
…