Skip to content

Commit

Permalink
Merge pull request #10 from AdamLeyshon/fix/include_list_logic
Browse files Browse the repository at this point in the history
fix: include list logic
  • Loading branch information
woelper authored Aug 1, 2024
2 parents 6d13be1 + 3232c1a commit fd853af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,11 @@ impl CopyBuilder {
}
}

if !self
.include_filters
.iter()
.any(|f| entry.path().to_string_lossy().contains(f))
if !self.include_filters.is_empty()
&& !self
.include_filters
.iter()
.any(|f| entry.path().to_string_lossy().contains(f))
{
continue 'files;
}
Expand Down

0 comments on commit fd853af

Please sign in to comment.