Verified Commit e983ee9d authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3374319 by catch, longwave: FileSystem::deleteRecursive() shouldn't log...

Issue #3374319 by catch, longwave: FileSystem::deleteRecursive() shouldn't log a message when it tries to delete a non-existent directory
parent f268fe3e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -354,6 +354,10 @@ public function deleteRecursive($path, callable $callback = NULL) {
      call_user_func($callback, $path);
    }

    if (!file_exists($path)) {
      return TRUE;
    }

    if (is_dir($path)) {
      $dir = dir($path);
      while (($entry = $dir->read()) !== FALSE) {