Comments (3)
Hello,
You can take inspiration from the "ExtractAllFilesFromZip" method of my "c++ helpers" project that uses libzippp : "https://github.com/embeddedmz/helpers-cpp/blob/master/HELPERS/Helpers.cpp"
Take a look to the other methods, they might help you.
Best regards.
from libzippp.
Hi @embeddedmz and @ctabin yes that is what I was looking for :) Thanks a lot. You should add a link to this helper on your README (I think I'll not the one needing it).
from libzippp.
Hello,
@Lecrapouille you're right, there is no helper directly in libzippp to extract/zip a directory, you'll have to do it yourself. Maybe it's a feature I will implement in future releases, but I don't want to have a dependency on boost
like the helpers shown by @embeddedmz :-)
The API to zip a directory is straightforward, but you have to itererate on the directory yourself.
from libzippp.
Related Issues (20)
- Minor: when the zip is aborted the percent is modified to 100% HOT 3
- Set compression method in addData
- ZipArchive::readEntry doesn't handle entries of zero size
- Add the possibility to set the compression level
- setCompressionMethod silently fail when the archive is not yet opened
- Is it possible to incrementally append data to a file already added to an archive? HOT 1
- Memory leak when archive `close` is not successful HOT 2
- ZipArchive::close: zip_close called before saving buffer data. HOT 8
- Modification Time Not Updated for Overwritten Files in Zip Archive
- [macOS] After unzip archive binary file become text file HOT 1
- The install of libzippp.pc is not working HOT 1
- LIBZIPPP_ENABLE_ENCRYPTION does not set LIBZIPPP_WITH_ENCRYPTION in .pc file
- BUG: null pointer dereference after cancelling a `close()` HOT 2
- Issue when closing a zip HOT 3
- Extract have something wrong HOT 4
- Failed to build in Codespace HOT 8
- ZipArchive::addFile needs variant with std::wstring HOT 3
- Archive with encryption causes zip_fopen_index() to fail HOT 2
- Add data files and then delete other entries, abnormal data will appear in the zip archive. HOT 1
- FetchContent support missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libzippp.