Comments (2)
Hi @alex-sparus,
Thanks for the message. Actually, you can retrieve the error code from ZipArchive::close
, which is described in the snippet you just give. BTW it is the libzip error code.
But it seems you're correct about the inconsistent behavior, the zipHandle
shouldn't be reset to nullptr
if the result is not zero 🤔
from libzippp.
The error code: not exactly. It is always -1
and you need to call zip_get_error
or zip_strerror
to get what exactly went wrong.
To be precise, I am testing with two "failures": cancellation and saving the archive into a read-only folder. I am able to work around the issues by using libzip functions directly, but it would be better to be able to use the wrapper.
from libzippp.
Related Issues (20)
- Issue opening zip file (constructor or .open() call) HOT 3
- 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
- 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
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.