summaryrefslogtreecommitdiffstats
path: root/lib/private/files/utils
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-22 14:02:38 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-29 14:03:23 +0200
commit8ec7e9fac7d16d60da09689f6a92dbdfed89c53b (patch)
tree2058f55f442ee2d59254eb3c8a57be017bb9894e /lib/private/files/utils
parent5810e7ab87bd4ce69107cdaf2689154e2e59ab5c (diff)
downloadnextcloud-server-8ec7e9fac7d16d60da09689f6a92dbdfed89c53b.tar.gz
nextcloud-server-8ec7e9fac7d16d60da09689f6a92dbdfed89c53b.zip
fix getting mount points when passing a path to the files:scan command
Diffstat (limited to 'lib/private/files/utils')
-rw-r--r--lib/private/files/utils/scanner.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php
index 23a9e26b3bc..3d68eb530a2 100644
--- a/lib/private/files/utils/scanner.php
+++ b/lib/private/files/utils/scanner.php
@@ -76,11 +76,10 @@ class Scanner extends PublicEmitter {
//TODO: move to the node based fileapi once that's done
\OC_Util::tearDownFS();
\OC_Util::setupFS($this->user);
- $absolutePath = Filesystem::getView()->getAbsolutePath($dir);
$mountManager = Filesystem::getMountManager();
- $mounts = $mountManager->findIn($absolutePath);
- $mounts[] = $mountManager->find($absolutePath);
+ $mounts = $mountManager->findIn($dir);
+ $mounts[] = $mountManager->find($dir);
$mounts = array_reverse($mounts); //start with the mount of $dir
return $mounts;