diff --git a/adm-zip/adm-zip-tests.ts b/adm-zip/adm-zip-tests.ts index 92be315161af57..8637751bfa4ac4 100644 --- a/adm-zip/adm-zip-tests.ts +++ b/adm-zip/adm-zip-tests.ts @@ -17,11 +17,9 @@ console.log(zip.readAsText("some_folder/my_file.txt")); zip.extractEntryTo(/*entry name*/"some_folder/my_file.txt", /*target path*/"/home/me/tempfolder", /*overwrite*/true) // extracts everything zip.extractAllTo(/*target path*/"/home/me/zipcontent/", /*overwrite*/true); - // extracts everything and calls callback -> async extracction zip.extractAllToAsync(/*target path*/"/home/me/zipcontent/", /*overwrite*/true, (error: Error)=> {}); - // creating archives var zip = new AdmZip(); @@ -61,4 +59,4 @@ zip.extractEntryTo("folder/subfolder/myfile.txt", "/home/user/", false, true); function isAdmZipEntry(obj: any): obj is AdmZip.IZipEntry { return obj !== null && typeof obj === "object" && typeof obj['entryName'] === 'string'; -} \ No newline at end of file +}