We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 483741f + b65d214 commit ff0ccc8Copy full SHA for ff0ccc8
lib/private/Files/Node/Root.php
@@ -419,6 +419,12 @@ public function getByIdInPath(int $id, string $path): array {
419
}
420
$mountsContainingFile = $mountCache->getMountsForFileId($id, $user);
421
422
+ // if the mount isn't in the cache yet, perform a setup first, then try again
423
+ if (count($mountsContainingFile) === 0) {
424
+ $this->mountManager->getSetupManager()->setupForPath($path, true);
425
+ $mountsContainingFile = $mountCache->getMountsForFileId($id, $user);
426
+ }
427
+
428
// when a user has access trough the same storage trough multiple paths
429
// (such as an external storage that is both mounted for a user and shared to the user)
430
// the mount cache will only hold a single entry for the storage
0 commit comments