Skip to content

Commit fd853af

Browse files
authored
Merge pull request #10 from AdamLeyshon/fix/include_list_logic
fix: include list logic
2 parents 6d13be1 + 3232c1a commit fd853af

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,11 @@ impl CopyBuilder {
275275
}
276276
}
277277

278-
if !self
279-
.include_filters
280-
.iter()
281-
.any(|f| entry.path().to_string_lossy().contains(f))
278+
if !self.include_filters.is_empty()
279+
&& !self
280+
.include_filters
281+
.iter()
282+
.any(|f| entry.path().to_string_lossy().contains(f))
282283
{
283284
continue 'files;
284285
}

0 commit comments

Comments
 (0)