Merge pull request #20337 from nextcloud/backport/19655/stable16
[stable16] Catch NotFoundException when getting the user folder
This commit is contained in:
commit
9ec55abffc
|
@ -53,10 +53,9 @@ class UploadCleanup extends TimedJob {
|
|||
$uid = $argument['uid'];
|
||||
$folder = $argument['folder'];
|
||||
|
||||
try {
|
||||
$userFolder = $this->rootFolder->getUserFolder($uid);
|
||||
$userRoot = $userFolder->getParent();
|
||||
|
||||
try {
|
||||
/** @var Folder $uploads */
|
||||
$uploads = $userRoot->get('uploads');
|
||||
/** @var Folder $uploadFolder */
|
||||
|
|
Loading…
Reference in New Issue