aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Helper.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/files/lib/Helper.php b/apps/files/lib/Helper.php
index c3d80957913..d2cebce5ddc 100644
--- a/apps/files/lib/Helper.php
+++ b/apps/files/lib/Helper.php
@@ -157,12 +157,9 @@ class Helper {
$entry['isShareMountPoint'] = $i['is_share_mount_point'];
}
$mountType = null;
- if ($i->isShared()) {
- $mountType = 'shared';
- } else if ($i->isMounted()) {
- $mountType = 'external';
- }
- if ($mountType !== null) {
+ $mount = $i->getMountPoint();
+ $mountType = $mount->getMountType();
+ if ($mountType !== '') {
if ($i->getInternalPath() === '') {
$mountType .= '-root';
}