Skip to content

Commit 359aeda

Browse files
committed
fix(files_trashbin): create folder if missing when expiring
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
1 parent 43701a5 commit 359aeda

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
@@ -90,7 +90,7 @@ private function getTrashRoot(IUser $user): Folder {
9090
$this->setupManager->tearDown();
9191
$this->setupManager->setupForUser($user);
9292

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

0 commit comments

Comments
 (0)