diff options
Diffstat (limited to 'apps/dav/lib/Upload/UploadFolder.php')
-rw-r--r-- | apps/dav/lib/Upload/UploadFolder.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/dav/lib/Upload/UploadFolder.php b/apps/dav/lib/Upload/UploadFolder.php index d74154c6ac9..b3df7383ac1 100644 --- a/apps/dav/lib/Upload/UploadFolder.php +++ b/apps/dav/lib/Upload/UploadFolder.php @@ -53,12 +53,19 @@ class UploadFolder implements ICollection { if ($name === '.file') { return new FutureFile($this->node, '.file'); } - return $this->node->getChild($name); + return new UploadFile($this->node->getChild($name)); } public function getChildren() { - $children = $this->node->getChildren(); + $tmpChildren = $this->node->getChildren(); + + $children = []; $children[] = new FutureFile($this->node, '.file'); + + foreach ($tmpChildren as $child) { + $children[] = new UploadFile($child); + } + return $children; } |