Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Apr 7, 2024
1 parent aa05f54 commit ee9c723
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/resource/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,21 @@ impl BackupFilter {
}

pub fn is_path_ignored(&self, item: &StrictPath) -> bool {
println!(":: BackupFilter::is_path_ignored");
dbg!(&item);
if self.ignored_paths.is_empty() {
println!("-- empty");
return false;
}

let path_globs = self.path_globs.lock().unwrap();
dbg!(&path_globs);
path_globs
.as_ref()
.map(|set| set.is_match(item.render()))
.map(|set| {
dbg!((&item, item.render()));
set.is_match(item.render())
})
.unwrap_or(false)
}

Expand Down

0 comments on commit ee9c723

Please sign in to comment.