GUUVABH6U5PQEZZCG2BODU3O4TTDU7RGFS6KLVUDDHRDOXEO34XAC
JPGI2LNPJE3OCP2EAU7O2GYT55PVHZL5S2GZPFEQLABULGKFFZ5QC
CXQGGJKCC5XRSYCKNFBN74BQIGTRYU7WIILN7JV4N5THT7TVL5LQC
V2GAFFJH2YQJSG3CDQL2K6GWG7N73F33C3KXDFNYM3YNK4TZ3XLQC
6LNO63SLVXX3ZHLLFV7ERGAJQUTY5RUVL7YNULSPAKJDWWBKMEJAC
SY4Q66QFFEQ2BPMJ5G7MSZPX52HM6QTHZXJWL2VVFB2JMWZQLJBQC
EHKSDEXADHIK2PFXJFBFQTAUAXBUIY57CKSDNLCQJH3WKPNHG6RAC
TYK5XDMD7PSITQFFPHNLD3462EODC3FQIV5DCW5KA527FXIW7CTQC
fn entries(processor: &config::Processor) -> impl Iterator<Item = DirEntry> {
WalkDir::new(&processor.path)
.max_depth(processor.depth)
.into_iter()
.filter_entry(|e| e.file_type().is_dir())
.filter_map(|e| e.ok())
}
impl Processor {
pub fn paths(&self) -> impl Iterator<Item = PathBuf> {
WalkDir::new(&self.path)
.max_depth(self.depth)
.into_iter()
.filter_entry(|e| e.file_type().is_dir())
.filter_map(|e| e.ok().map(|e| e.path().to_owned()))
}
}