Replies: 2 comments 1 reply
-
BitArchiveWriter archive(lib, BitFormat::Zip);
archive.setUpdateMode(UpdateMode::Update);
archive.addFiles(dir.toStdString(), "*", true); // instead of addDirectory
archive.compressTo(archivePath.toStdString()); |
Beta Was this translation helpful? Give feedback.
0 replies
-
That worked. Thank you! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing a bunch of files to a temp directory, and then compressing that into an archive. With your amazing help, my program is able to write zip files :-)
So, I'm able to use bit7z to zip a temp directory, for example
/tmp/H6Mv5yYOMTk7FwO7LwMy
, but when I open the zip file, it looks like thisHow can I compress the contents of a directory without including the parent directory in the zip file? I want to retain the
data/S093URS/etc
directory structure as well, so I basically want the root of the zip file to contain thedata
directory.Beta Was this translation helpful? Give feedback.
All reactions