aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>2023-05-24 08:22:50 +0200
committerGitHub <noreply@github.com>2023-05-24 08:22:50 +0200
commit6b55e92e33d698484952f7964c7f4d909e8fd3e6 (patch)
treef30a11b67ff30d2724f94c852d838a9f14399bd4 /lib
parent294035f523a0149dcab5eb301ec39e99d09f7adb (diff)
downloadnextcloud-server-6b55e92e33d698484952f7964c7f4d909e8fd3e6.tar.gz
nextcloud-server-6b55e92e33d698484952f7964c7f4d909e8fd3e6.zip
invert elseif on rmdir for local storage
Signed-off-by: Lorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/Local.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index 3b292506578..c0ce0e7021a 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -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();
}