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'])) {
|
if (\OC::$server->getPreviewManager()->isMimeSupported($i['mimetype'])) {
|
||||||
$entry['isPreviewAvailable'] = true;
|
$entry['isPreviewAvailable'] = true;
|
||||||
}
|
}
|
||||||
$entry['name'] = $i['name'];
|
$entry['name'] = $i->getName();
|
||||||
$entry['permissions'] = $i['permissions'];
|
$entry['permissions'] = $i['permissions'];
|
||||||
$entry['mimetype'] = $i['mimetype'];
|
$entry['mimetype'] = $i['mimetype'];
|
||||||
$entry['size'] = $i['size'];
|
$entry['size'] = $i['size'];
|
||||||
|
|
|
@ -108,7 +108,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getName() {
|
public function getName() {
|
||||||
return $this->data['name'];
|
return basename($this->getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue