menu

arrow_back How do I compare the files in the directory with the files in the archive?

by
1 vote
Such a task:
There are "reference" files that are compiled into several archives, and then into one common archive.
There is already unpacked the whole thing with some modified files.
You need to compare the "reference" files in the archive with the files in the directory. The files should be compared according to their content.

What is the best way to implement this? So far I haven't found ways to compare files without unpacking the archives. Is it possible without unpacking at all?

2 Answers

by
0 votes
ZipArchiveEntry.Open() And then you compare the resulting Stream with the file on the disk
by
1 vote
You can't unpack without unpacking, but you can unpack to memory instead of to disk.