mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 01:40:34 +01:00
parent
50fca2dca2
commit
08fcd7ce59
1 changed files with 6 additions and 8 deletions
14
src/walk.rs
14
src/walk.rs
|
@ -365,14 +365,12 @@ 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
|
||||
.time_constraints
|
||||
.iter()
|
||||
.all(|tf| tf.applies_to(&modified));
|
||||
}
|
||||
if let Ok(metadata) = entry_path.metadata() {
|
||||
if let Ok(modified) = metadata.modified() {
|
||||
matched = config
|
||||
.time_constraints
|
||||
.iter()
|
||||
.all(|tf| tf.applies_to(&modified));
|
||||
}
|
||||
}
|
||||
if !matched {
|
||||
|
|
Loading…
Reference in a new issue