NXADNFPSCM7ETIGZ676I7X3WENZPRBEZGIOLDWC2FSY652QK2UBAC
let glob_string = datadir_path.join("*.csv");
let mut entries: Vec<_> = if let Some(hostname) = hostname {
let index_path = datadir_path.join(format!("{}.csv", hostname));
Self::read_log_file(index_path)?
} else {
let glob_string = datadir_path.join("*.csv");
let mut entries: Vec<_> = index_paths
.into_iter()
.map(Self::read_log_file)
.collect::<Result<Vec<Vec<_>>, Error>>()?
.into_iter()
.flatten()
.filter(|entry| entry.hostname == hostname)
.collect();
index_paths
.into_iter()
.map(Self::read_log_file)
.collect::<Result<Vec<Vec<_>>, Error>>()?
.into_iter()
.flatten()
.collect()
};