I
I
Igor Mironov2021-04-21 20:29:59
Data archiving
Igor Mironov, 2021-04-21 20:29:59

How to archive a directory using C++?

It is necessary to archive the directory into any archive (zip, 7z, tar, whatever)
At the same time, the directory of the desired directory and the directory where the archive should be located are different
. I tried to implement this using ziplib, LZMA SDK and some other lib. But I didn’t understand and didn’t find anything.

I would be very grateful if you explain how to do this with the help of something, as detailed as possible,
or provide a ready-made code with comments
. I apologize for impudence, but I really can’t understand anything.
Thank you all in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Romses Panagiotis, 2021-04-22
@romesses

There is a C example of using the libarchive library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question