Skip to content

Commit

Permalink
Merge pull request #38429 from tanganellilore/fix_delete_user_syslink
Browse files Browse the repository at this point in the history
Fix deletion of User when system link are used in him user folder
  • Loading branch information
szaimen authored May 25, 2023
2 parents 477d644 + 6b55e92 commit f29aa29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ public function rmdir($path) {
if (in_array($file->getBasename(), ['.', '..'])) {
$it->next();
continue;
} elseif ($file->isDir()) {
rmdir($file->getPathname());
} elseif ($file->isFile() || $file->isLink()) {
unlink($file->getPathname());
} elseif ($file->isDir()) {
rmdir($file->getPathname());
}
$it->next();
}
Expand Down

0 comments on commit f29aa29

Please sign in to comment.