Skip to content

Commit 4382f8d

Browse files
committed
skip files in folders when merging
1 parent 3edd81e commit 4382f8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/package.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ fn merge_packages(inputs: Vec<PathBuf>) {
444444
let files: Vec<_> = archive.file_names().map(|x| x.to_string()).collect();
445445

446446
for file in files {
447+
// skip files in folders
448+
if file.contains('/') {
449+
continue;
450+
}
447451
if potential_names.iter().any(|x| file.ends_with(*x)) {
448452
println!("{}", file);
449453

0 commit comments

Comments
 (0)