aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node/Folder.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-04-05 15:29:49 +0200
committerRobin Appelman <robin@icewind.nl>2022-04-06 14:40:34 +0200
commit151c80039751bbe74042d7f6f5d58e9f115064e4 (patch)
tree6345e06bc32e6b8392bc63f10bca1a35f5ee75c6 /lib/private/Files/Node/Folder.php
parent9b1abd6fac90b97527c8db9d9119979c7753cb8c (diff)
downloadnextcloud-server-151c80039751bbe74042d7f6f5d58e9f115064e4.tar.gz
nextcloud-server-151c80039751bbe74042d7f6f5d58e9f115064e4.zip
allow reusing known folder info when getting directory contents
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Node/Folder.php')
-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 d058805b20e..9c15f0edf41 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -97,10 +97,10 @@ class Folder extends Node implements \OCP\Files\Folder {
* @throws \OCP\Files\NotFoundException
*/
public function getDirectoryListing() {
- $folderContent = $this->view->getDirectoryContent($this->path);
+ $folderContent = $this->view->getDirectoryContent($this->path, '', $this->getFileInfo());
return array_map(function (FileInfo $info) {
- if ($info->getMimetype() === 'httpd/unix-directory') {
+ if ($info->getMimetype() === FileInfo::MIMETYPE_FOLDER) {
return new Folder($this->root, $this->view, $info->getPath(), $info);
} else {
return new File($this->root, $this->view, $info->getPath(), $info);