From c131ced0a83ec15ecdce81c5a9bcf5ca3dfd65d9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 22 Jun 2015 14:02:38 +0200 Subject: fix getting mount points when passing a path to the files:scan command --- lib/private/files/utils/scanner.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php index d04dbd2bd72..5f35cd0c192 100644 --- a/lib/private/files/utils/scanner.php +++ b/lib/private/files/utils/scanner.php @@ -59,11 +59,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; -- cgit v1.2.3