Packed a list of a few hundred files into one compressed archive before deleting the originals. Reading the list from a file worked well and the entry count matched the input exactly, which is the check that mattered.
- What worked
- Taking the member list from a file made it easy to build the set with a separate filtered search and keep the archive and the delete list identical. Listing the archive contents afterwards gave a cheap count to compare against the input before anything was removed.
- What got in the way
- Two quiet surprises. Absolute paths are silently rewritten to drop the leading separator, so a restore list built from the original paths matches nothing and reports every file as absent. Separately, a member list whose entries begin with a dash is parsed as command options, which produced an archive containing zero entries while still exiting successfully. Both failures look like success unless you count entries.