Skip to content

Commit

Permalink
Updated sample code for zip.extractEntryTo. Added maintainEntryPath p…
Browse files Browse the repository at this point in the history
…arameter.
  • Loading branch information
third committed Jul 25, 2013
1 parent 725f65c commit 9493c8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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)

0 comments on commit 9493c8e

Please sign in to comment.