Fixed directory icon after rename

This commit is contained in:
Vincent Petry 2013-11-28 13:15:20 +01:00
parent dab3629ff5
commit da1a89fd15

View file

@ -77,6 +77,12 @@ class App {
) {
// successful rename
$meta = $this->view->getFileInfo($dir . '/' . $newname);
if ($meta['mimetype'] === 'httpd/unix-directory') {
$meta['type'] = 'dir';
}
else {
$meta['type'] = 'file';
}
$fileinfo = array(
'id' => $meta['fileid'],
'mime' => $meta['mimetype'],