summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/upload/rootcollection.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/upload/rootcollection.php')
-rw-r--r--apps/dav/lib/upload/rootcollection.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/dav/lib/upload/rootcollection.php b/apps/dav/lib/upload/rootcollection.php
new file mode 100644
index 00000000000..673a3734318
--- /dev/null
+++ b/apps/dav/lib/upload/rootcollection.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace OCA\DAV\Upload;
+
+use Sabre\DAVACL\AbstractPrincipalCollection;
+
+class RootCollection extends AbstractPrincipalCollection {
+
+ /**
+ * @inheritdoc
+ */
+ function getChildForPrincipal(array $principalInfo) {
+ return new UploadHome($principalInfo);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ function getName() {
+ return 'uploads';
+ }
+
+}