invert elseif on rmdir for local storage

Signed-off-by: Lorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>
This commit is contained in:
Lorenzo Tanganelli 2023-05-24 08:22:50 +02:00 committed by GitHub
parent 294035f523
commit 6b55e92e33
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();
}