Skip to content

Commit df0b9d4

Browse files
invarioAndyScherzinger
authored andcommitted
fix(files_trashbin): create folder if missing when expiring
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
1 parent efe3553 commit df0b9d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private function getTrashRoot(IUser $user): Folder {
8989
$this->setupManager->tearDown();
9090
$this->setupManager->setupForUser($user);
9191

92-
$folder = $this->rootFolder->getUserFolder($user->getUID())->getParent()->get('files_trashbin');
92+
$folder = $this->rootFolder->getUserFolder($user->getUID())->getParent()->getOrCreateFolder('files_trashbin');
9393
if (!$folder instanceof Folder) {
9494
throw new \LogicException("Didn't expect files_trashbin to be a file instead of a folder");
9595
}

0 commit comments

Comments
 (0)