Skip to content

Commit

Permalink
fix: allow directories as task source (#3488)
Browse files Browse the repository at this point in the history
I literally have no clue why this filter is there. Hopefully this will not break something

Fixes #1857
  • Loading branch information
jdx authored Dec 12, 2024
1 parent 96f5bcf commit a4b6316
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,18 +681,15 @@ fn last_modified_path(
root: impl AsRef<std::ffi::OsStr>,
paths: &[&String],
) -> Result<Option<SystemTime>> {
let files = paths
.iter()
.map(|p| {
let base = Path::new(p);
let files = paths.iter().map(|p| {
let base = Path::new(p);

if base.is_relative() {
base.to_path_buf()
} else {
Path::new(&root).join(base)
}
})
.filter(|p| p.is_file());
if base.is_relative() {
base.to_path_buf()
} else {
Path::new(&root).join(base)
}
});

last_modified_file(files)
}
Expand Down

0 comments on commit a4b6316

Please sign in to comment.