( sourceZip: string, files: string[], fileCode?: string )
| 53 | } |
| 54 | |
| 55 | export async function compress( |
| 56 | sourceZip: string, |
| 57 | files: string[], |
| 58 | fileCode?: string |
| 59 | ): Promise<boolean> { |
| 60 | if (!checkFileName(sourceZip) || files.some((v) => !checkFileName(v))) |
| 61 | throw new Error(COMPRESS_ERROR_MSG.invalidName); |
| 62 | return await useZip(sourceZip, files, fileCode); |
| 63 | } |
| 64 | |
| 65 | export async function decompress( |
| 66 | zipPath: string, |
no test coverage detected