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:
Simon L 2023-05-26 01:12:34 +02:00 committed by GitHub
commit f29aa2997e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}