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 ee9c723 commit 58335cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resource/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ impl PartialEq for BackupFilter {

impl BackupFilter {
pub fn build_globs(&mut self) {
println!(":: BackupFilter::build_globs");
let mut path_globs = self.path_globs.lock().unwrap();
if self.ignored_paths.is_empty() {
*path_globs = None;
Expand All @@ -307,6 +308,7 @@ impl BackupFilter {
// If the user has specified a plain folder, we also want to include its children.
format!("{}/**", &normalized),
];
dbg!(&variants);

for variant in variants {
if let Ok(glob) = globset::GlobBuilder::new(&variant)
Expand All @@ -332,11 +334,10 @@ impl BackupFilter {
}

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

0 comments on commit 58335cf

Please sign in to comment.