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