aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-18 15:41:10 +0100
committerRobin Appelman <icewind@owncloud.com>2016-03-21 13:53:33 +0100
commit5e6c905a145d288127a08062a7a95e7577f5f4e2 (patch)
treeacc42617acee91cfdeeade122a475fda87b63c48 /lib
parenta98b038300fd4c4d64f4f9cb3268ba365382772a (diff)
downloadnextcloud-server-5e6c905a145d288127a08062a7a95e7577f5f4e2.tar.gz
nextcloud-server-5e6c905a145d288127a08062a7a95e7577f5f4e2.zip
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);
}
}