From c7d635620daff6115dd538951b37e660ba6805e0 Mon Sep 17 00:00:00 2001 From: seb Date: Sun, 19 Jul 2015 11:02:29 -0300 Subject: [PATCH] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e7523f5..e8be91b 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ It was born out of the necessity of a compression library that would be reliable #### Features: - [x] Create zip in memory - [x] Allow files, vector and generic streams as input to zip +- [x] File mappings for replacing strategies (overwrite if exists or use alternative name from mapping) - [ ] Password protected zip -- [ ] File mappings for replacing strategies (if file exists overwrite or use alternative name provided in mapping) #### Configuration @@ -99,6 +99,14 @@ unzipper.extract(); unzipper.close(); ``` +- Extracting all entries from zip using alternative names for existing files on disk +```c++ +std::map alternativeNames = { {"Test1", "alternative_name_test1"} }; +Unzipper unzipper("zipfile.zip"); +unzipper.extract(alternativeNames); +unzipper.close(); +``` + - Extracting a single entry from zip ```c++ Unzipper unzipper("zipfile.zip");