mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 23:34:22 -04:00
Merge pull request #46720 from nextcloud/backport/46694/stable28
[stable28] fix: FileInfo from `View` should have the correct name of a mountpoint
This commit is contained in:
commit
b305be43ca
1 changed files with 4 additions and 0 deletions
|
|
@ -1388,6 +1388,10 @@ class View {
|
|||
if ($mount instanceof MoveableMount && $internalPath === '') {
|
||||
$data['permissions'] |= \OCP\Constants::PERMISSION_DELETE;
|
||||
}
|
||||
if ($internalPath === '' && $data['name']) {
|
||||
$data['name'] = basename($path);
|
||||
}
|
||||
|
||||
$ownerId = $storage->getOwner($internalPath);
|
||||
$owner = null;
|
||||
if ($ownerId !== null && $ownerId !== false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue