(sourceZip: string, destDir: string, code?: string)
| 260 | } |
| 261 | |
| 262 | async unzip(sourceZip: string, destDir: string, code?: string) { |
| 263 | if (!code) code = this.fileCode; |
| 264 | if (!this.check(sourceZip) || !this.checkPath(destDir)) throw new Error(ERROR_MSG_01); |
| 265 | this.zipFileCheck(this.toAbsolutePath(sourceZip)); |
| 266 | return await decompress(this.toAbsolutePath(sourceZip), this.toAbsolutePath(destDir), code); |
| 267 | } |
| 268 | |
| 269 | async zip(sourceZip: string, files: string[], code?: string) { |
| 270 | if (!code) code = this.fileCode; |
no test coverage detected