mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
invert elseif on rmdir for local storage
Signed-off-by: Lorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>
This commit is contained in:
parent
294035f523
commit
6b55e92e33
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