Make --changed-within/before work for directories
closes
@@ -365,7 +365,6 @@ fn spawn_senders(
// Filter out unwanted modification times
if !config.time_constraints.is_empty() {
let mut matched = false;
- if entry_path.is_file() {
if let Ok(metadata) = entry_path.metadata() {
if let Ok(modified) = metadata.modified() {
matched = config
@@ -374,7 +373,6 @@ fn spawn_senders(
.all(|tf| tf.applies_to(&modified));
}
}
- }
if !matched {
return ignore::WalkState::Continue;
}
