Commit fd72ce8d authored by mickadoo's avatar mickadoo

68: Fix issue with removing directory that doesn't exist

parent d59cc45a
......@@ -32,6 +32,11 @@ class FileSystem extends BaseFileSystem {
* @param string $dir
*/
public function removeDir($dir) {
if (!$this->exists($dir)) {
return;
}
$childFirst = \RecursiveIteratorIterator::CHILD_FIRST;
$noDots = \RecursiveDirectoryIterator::SKIP_DOTS;
$directoryIterator = new \RecursiveDirectoryIterator($dir, $noDots);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment