diff --git a/src/lib.rs b/src/lib.rs index e2d5d70..502d491 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; }