mirror of
https://github.com/nextcloud/server.git
synced 2026-03-03 22:11:01 -05:00
Merge pull request #38429 from tanganellilore/fix_delete_user_syslink
Fix deletion of User when system link are used in him user folder
This commit is contained in:
commit
f29aa2997e
1 changed files with 2 additions and 2 deletions
|
|
@ -136,10 +136,10 @@ class Local extends \OC\Files\Storage\Common {
|
|||
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue