summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-04-26 14:53:11 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-04-28 09:38:21 +0200
commitab9a36e872173b34be2e678de0c452885e3b48d8 (patch)
tree76e34c578bfdde6ab46164f9e4227e4fe0cc351e /apps/files_external
parent9da697b11af2928a1470dcedc7ebf77e4a5f0730 (diff)
downloadnextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.tar.gz
nextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.zip
allow apps to set custom mount types
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Config/ExternalMountPoint.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/apps/files_external/lib/Config/ExternalMountPoint.php b/apps/files_external/lib/Config/ExternalMountPoint.php
new file mode 100644
index 00000000000..76a090b7ec4
--- /dev/null
+++ b/apps/files_external/lib/Config/ExternalMountPoint.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * @copyright Copyright (c) 2017 Robin Appelman <robin@icewind.nl>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OCA\Files_External\Config;
+
+use OC\Files\Mount\MountPoint;
+
+class ExternalMountPoint extends MountPoint {
+ public function getMountType() {
+ return 'external';
+ }
+}