From 9493c8ed94844606feb5c4653c161aab2b5f3ecf Mon Sep 17 00:00:00 2001 From: Third Santor Date: Thu, 25 Jul 2013 10:24:25 -0400 Subject: [PATCH] Updated sample code for zip.extractEntryTo. Added maintainEntryPath parameter. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84296fb..380d0b4 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ There are no other nodeJS libraries that ADM-ZIP is dependent of // outputs the content of some_folder/my_file.txt console.log(zip.readAsText("some_folder/my_file.txt")); // extracts the specified file to the specified location - zip.extractEntryTo(/*entry name*/"some_folder/my_file.txt", /*target path*/"/home/me/tempfolder", /*overwrite*/true) + zip.extractEntryTo(/*entry name*/"some_folder/my_file.txt", /*target path*/"/home/me/tempfolder", /*maintainEntryPath*/false, /*overwrite*/true); // extracts everything zip.extractAllTo(/*target path*/"/home/me/zipcontent/", /*overwrite*/true); @@ -59,6 +59,6 @@ There are no other nodeJS libraries that ADM-ZIP is dependent of // ... more examples in the wiki ``` -For more detailed information please check out the [wiki](https://github.com/cthackers/adm-zip/wiki). - +For more detailed information please check out the [wiki](https://github.com/cthackers/adm-zip/wiki). + [![build status](https://secure.travis-ci.org/cthackers/adm-zip.png)](http://travis-ci.org/cthackers/adm-zip) \ No newline at end of file