diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/app.php | 6 |
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'], |