diff options
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r-- | lib/private/Files/View.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 1fa14501047..890dcfe20e1 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -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) { |