Skip to content

Commit b0240a4

Browse files
committed
chore: Remove other useless assignment of 'path' key for FileInfo
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 347d786 commit b0240a4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/private/Files/View.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,6 @@ private function searchCommon($method, $args) {
17621762
if (substr($mountPoint . $result['path'], 0, $rootLength + 1) === $this->fakeRoot . '/') {
17631763
$internalPath = $result['path'];
17641764
$path = $mountPoint . $result['path'];
1765-
$result['path'] = substr($mountPoint . $result['path'], $rootLength);
17661765
$ownerId = $storage->getOwner($internalPath);
17671766
if ($ownerId !== false) {
17681767
$owner = $userManager->get($ownerId);
@@ -1785,7 +1784,6 @@ private function searchCommon($method, $args) {
17851784
if ($results) {
17861785
foreach ($results as $result) {
17871786
$internalPath = $result['path'];
1788-
$result['path'] = rtrim($relativeMountPoint . $result['path'], '/');
17891787
$path = rtrim($mountPoint . $internalPath, '/');
17901788
$ownerId = $storage->getOwner($internalPath);
17911789
if ($ownerId !== false) {

0 commit comments

Comments
 (0)