Skip to content

Commit

Permalink
Merge pull request #56 from third/master
Browse files Browse the repository at this point in the history
Updated sample code for zip.extractEntryTo. Added maintainEntryPath param.
  • Loading branch information
cthackers committed Jul 26, 2013
2 parents 725f65c + 9493c8e commit 0b0b8fe
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 0b0b8fe

Please sign in to comment.