You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->logger->warning('could not get root folder for user ' . $cachedMount->getUser()->getUID(), ['exception' => $e, 'fileId' => $fileId, 'userId' => $cachedMount->getUser()->getUID()]);
38
47
returnnull;
39
48
}
49
+
$node = $rootFolder->getFirstNodeById($fileId);
50
+
if ($node === null) {
51
+
returnnull;
52
+
}
53
+
40
54
$details = newLocalFile();
41
55
$details->setId($fileId)
42
-
->setName($row['name'] ?? '')
43
-
->setStorageId($row['storage'] ?? -1)
44
-
->setParent($row['parent'] ?? -1);
45
-
$result->closeCursor();
56
+
->setName($node->getName())
57
+
->setStorageId($cachedMount->getStorageId())
58
+
->setParent($node->getParentId());
46
59
47
60
return$details;
48
61
}
@@ -51,28 +64,15 @@ public function getFileDetails(int $fileId): ?LocalFile {
51
64
* return details about the mount point from a LocalFile
0 commit comments