Fixed directory icon after rename
This commit is contained in:
parent
dab3629ff5
commit
da1a89fd15
|
@ -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'],
|
||||||
|
|
Loading…
Reference in New Issue