Fixed directory icon after rename

This commit is contained in:
Vincent Petry 2013-11-28 13:15:20 +01:00
parent dab3629ff5
commit da1a89fd15
1 changed files with 6 additions and 0 deletions

View File

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