Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-18 17:41:10 +0300
committerRobin Appelman <icewind@owncloud.com>2016-03-23 19:13:21 +0300
commitf77ce8829c32a6258c1d18d833066636bff52179 (patch)
tree0de2490f5e2e7062c20bcfce9eb65184b0063ec0 /lib
parent70a5233f697d27a24e51c8be239dfcf36b1d9b9d (diff)
pass the fileinfo to the node if available
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/node/folder.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php
index e8c49cd2c0b..c376bfb1881 100644
--- a/lib/private/files/node/folder.php
+++ b/lib/private/files/node/folder.php
@@ -100,9 +100,9 @@ class Folder extends Node implements \OCP\Files\Folder {
$isDir = $info['mimetype'] === 'httpd/unix-directory';
}
if ($isDir) {
- return new Folder($this->root, $this->view, $path);
+ return new Folder($this->root, $this->view, $path, $info);
} else {
- return new File($this->root, $this->view, $path);
+ return new File($this->root, $this->view, $path, $info);
}
}