diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-22 15:02:38 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-30 17:45:54 +0300 |
commit | c131ced0a83ec15ecdce81c5a9bcf5ca3dfd65d9 (patch) | |
tree | 0cbf0734ebffe3db89fd99e1782a3a60499dc5d7 /lib/private/files/utils/scanner.php | |
parent | 420dab76385cddabb6182bf05f6568b8aa660a9e (diff) |
fix getting mount points when passing a path to the files:scan command
Diffstat (limited to 'lib/private/files/utils/scanner.php')
-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 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; |