Fix folder name for storage root
This commit is contained in:
parent
bf5e9357fc
commit
dea5219244
|
@ -113,7 +113,7 @@ class Helper
|
|||
if (\OC::$server->getPreviewManager()->isMimeSupported($i['mimetype'])) {
|
||||
$entry['isPreviewAvailable'] = true;
|
||||
}
|
||||
$entry['name'] = $i['name'];
|
||||
$entry['name'] = $i->getName();
|
||||
$entry['permissions'] = $i['permissions'];
|
||||
$entry['mimetype'] = $i['mimetype'];
|
||||
$entry['size'] = $i['size'];
|
||||
|
|
|
@ -108,7 +108,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
|
|||
* @return string
|
||||
*/
|
||||
public function getName() {
|
||||
return $this->data['name'];
|
||||
return basename($this->getPath());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue