Fix folder name for storage root

This commit is contained in:
Robin Appelman 2014-05-27 14:24:35 +02:00
parent bf5e9357fc
commit dea5219244
2 changed files with 2 additions and 2 deletions

View File

@ -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'];

View File

@ -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());
} }
/** /**