mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
fix getting mount points when passing a path to the files:scan command
This commit is contained in:
parent
5810e7ab87
commit
8ec7e9fac7
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue