Removes a directory (and all its content) recursively.
public static removeDirectory ( string $dir, array $options = [] ) | ||
$dir | string | the directory to be deleted recursively. |
$options | array | options for directory remove. Valid options are: - traverseSymlinks: boolean, whether symlinks to the directories should be traversed too. Defaults to `false`, meaning the content of the symlinked directory would not be deleted. Only symlink would be removed in that default case. |