summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-28 13:15:20 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-28 13:15:20 +0100
commitda1a89fd153e7ffa922d01381c571f9aa2417b47 (patch)
treeefde1c4f3bf569de05f6829582d94d154c993c75 /apps/files/lib
parentdab3629ff5c65de91813cde6e9adda769ece2609 (diff)
downloadnextcloud-server-da1a89fd153e7ffa922d01381c571f9aa2417b47.tar.gz
nextcloud-server-da1a89fd153e7ffa922d01381c571f9aa2417b47.zip
Fixed directory icon after rename
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/app.php6
1 files changed, 6 insertions, 0 deletions
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'],