tq: exclude hidden mounts
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/877/head
parent
5ce8696efb
commit
25d81987b9
|
@ -48,7 +48,16 @@ class TimelineRoot
|
||||||
foreach ($this->folderPaths as $id => $folderPath) {
|
foreach ($this->folderPaths as $id => $folderPath) {
|
||||||
$mounts = $manager->findIn($folderPath);
|
$mounts = $manager->findIn($folderPath);
|
||||||
foreach ($mounts as $mount) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue