diff options
-rw-r--r-- | lib/private/Files/FileInfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/FileInfo.php b/lib/private/Files/FileInfo.php index 4c38ba769d3..53f73f0f95d 100644 --- a/lib/private/Files/FileInfo.php +++ b/lib/private/Files/FileInfo.php @@ -175,7 +175,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess { * @return string */ public function getName() { - return basename($this->getPath()); + return isset($this->data['name']) ? $this->data['name'] : basename($this->getPath()); } /** |