Archive and file guides

Resolve a duplicate route file when merging ZIPs

·

Use ZIP Merger when two bundles need to become one archive and both contain a file at the same path. Check the order and decide which copy belongs in the combined bundle.

ZIP Merger

Find the duplicate route

Choose Load example. The fieldwork ZIP is first and the update ZIP is second. The first supplies a route file, measurements and a binary sample. The second supplies a revised route file and a team note.

Keep Stop and review, then choose Merge ZIP archives. The duplicate report lists briefing/route.txt. Review the two archive numbers before selecting a policy.

Download the fieldwork example ZIPDownload the fieldwork update ZIP

Choose which route text to include

Select Keep the last archive's copy, then merge again. Download merged.zip and open briefing/route.txt in ZIP File Extractor. It should contain South route followed by a line break.

Repeat with Keep the first archive's copy. The same path should contain North route followed by a line break. Both results retain briefing/team.txt, data/café.csv and data/sample.bin.

Choose which route text to include
Duplicate file policyRoute text in the resulting ZIP
Keep the first archive's copyNorth route
Keep the last archive's copySouth route

Download the fieldwork example ZIPDownload the fieldwork update ZIPPKWARE ZIP specification

Check the folder tree before sending the merged ZIP

Both examples list empty/. Check that the output contains one entry for it. Compare the two data paths and their bytes with the fieldwork ZIP.

If the merger reports a structural conflict such as one archive using reports as a file and another using it as a folder, rename the paths at the source and try again. Use the same approach for folder names that differ only in case or Unicode normalization.

PKWARE ZIP specification

Common questions

Can both versions of the route file be retained?

Rename one path in its source archive before merging. Both distinct paths will then appear in the combined ZIP.

Does Keep last drop other files from the first archive?

The choice applies to exact duplicate file paths. Unique entries from each archive stay in the output.

Sources

Put it into practice.

Related guides