T
T
tiakuv2020-11-02 14:46:51
rar
tiakuv, 2020-11-02 14:46:51

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

2 answer(s)
F
freeExec, 2020-11-02
@freeExec

It is impossible without unpacking, but you can unpack into memory, not to disk.

V
Vasily Bannikov, 2020-11-03
@vabka

ZipArchiveEntry.Open() And then compare the resulting Stream with the file on disk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question