diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-22 14:02:38 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-29 14:03:23 +0200 |
commit | 8ec7e9fac7d16d60da09689f6a92dbdfed89c53b (patch) | |
tree | 2058f55f442ee2d59254eb3c8a57be017bb9894e /lib/private/files/utils | |
parent | 5810e7ab87bd4ce69107cdaf2689154e2e59ab5c (diff) | |
download | nextcloud-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.php | 5 |
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; |