tq: exclude hidden mounts

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/877/head
Varun Patil 2023-10-13 17:43:01 -07:00
parent 5ce8696efb
commit 25d81987b9
1 changed files with 10 additions and 1 deletions

View File

@ -48,7 +48,16 @@ class TimelineRoot
foreach ($this->folderPaths as $id => $folderPath) {
$mounts = $manager->findIn($folderPath);
foreach ($mounts as $mount) {
$this->setFolder($mount->getStorageRootId(), null, $mount->getMountPoint());
$id = $mount->getStorageRootId();
$path = $mount->getMountPoint();
// Ignore hidden mounts or any mounts in hidden folders
// (any edge cases/exceptions here?)
if (str_contains($path, '/.')) {
continue;
}
$this->setFolder($id, null, $path);
}
}
}