From da1a89fd153e7ffa922d01381c571f9aa2417b47 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 28 Nov 2013 13:15:20 +0100 Subject: [PATCH] Fixed directory icon after rename --- apps/files/lib/app.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/files/lib/app.php b/apps/files/lib/app.php index ea94ea43ef..e04ac173d5 100644 --- a/apps/files/lib/app.php +++ b/apps/files/lib/app.php @@ -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'],