in src/flowgger/input/file/discovery.rs [73:87]
fn add_initial_watches(&mut self, path_match: PathBuf) {
for entry in glob(path_match.to_str().unwrap()).expect("Failed to read glob pattern") {
match entry {
Ok(path) => {
if path.is_dir() {
self.add_directory_watch(&path)
}
}
Err(e) => panic!("Failed to read glob entry: {}", e),
}
}
if let Some(parent) = path_match.clone().parent() {
self.add_initial_watches(PathBuf::from(parent))
}
}