Answer the question
In order to leave comments, you need to log in
How to compare files in a directory with files in an archive?
Such a task:
There are "reference" files that are collected into several archives, and then into one common archive.
There is already unpacked all this business with some changed files.
You need to compare the "reference" files in the archive with the files in the directory. Files are compared by content.
How it is better to implement it? I have not yet found a way to compare files without unpacking the archives. Is it even possible without unpacking?
Answer the question
In order to leave comments, you need to log in
It is impossible without unpacking, but you can unpack into memory, not to disk.
ZipArchiveEntry.Open() And then compare the resulting Stream with the file on disk
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question