Fixed directory icon after rename
This commit is contained in:
parent
dab3629ff5
commit
da1a89fd15
1 changed files with 6 additions and 0 deletions
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue