Skip to content

Commit 1f8e645

Browse files
authored
Merge pull request #61442 from invario/fix_files_trashbin_exception
fix(files_trashbin): create folder if missing when expiring trash
2 parents 4afadf9 + 34e255d commit 1f8e645

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)