diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index cefd5fac92489..a121e28e8e36e 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -521,6 +521,10 @@ public function setupForPath(string $path, bool $includeChildren = false): void if (is_a($mountProvider, IPartialMountProvider::class, true)) { $rootId = $cachedMount->getRootId(); $rootMetadata = $this->fileAccess->getByFileId($rootId); + if (!$rootMetadata) { + $this->setupForUser($user); + return; + } $providerArgs = new MountProviderArgs($cachedMount, $rootMetadata); // mark the path as cached (without children for now...) $this->setupMountProviderPaths[$mountPoint] = self::SETUP_WITHOUT_CHILDREN;