Watch
1
0
Fork
You've already forked souveraine
0

agentsd: collapse the scan predicate

This commit is contained in:
Fimeg 2026-08-11 14:05:51 -04:00
commit e7929e41ca

View file

@ -463,12 +463,12 @@ fn recent_jsonl(root: &Path, depth: usize, out: &mut Vec<PathBuf>) {
let Ok(meta) = e.metadata() else { continue };
if meta.is_dir() {
recent_jsonl(&path, depth - 1, out);
} else if path.extension().and_then(|x| x.to_str()) == Some("jsonl") {
if meta.modified().map(|m| m >= cutoff).unwrap_or(false) {
} else if path.extension().and_then(|x| x.to_str()) == Some("jsonl")
&& meta.modified().map(|m| m >= cutoff).unwrap_or(false)
{
out.push(path);
}
}
}
}
fn stem(p: &Path) -> String {