(ctx context.Context, filePath, dstDir string, secret string)
| 20 | } |
| 21 | |
| 22 | func (z ZipArchiver) Extract(ctx context.Context, filePath, dstDir string, secret string) error { |
| 23 | if err := checkCmdAvailability("unzip"); err != nil { |
| 24 | return err |
| 25 | } |
| 26 | return cmd.NewCommandMgr(cmd.WithContext(ctx)).Run("unzip", "-qo", filePath, "-d", dstDir) |
| 27 | } |
| 28 | |
| 29 | func (z ZipArchiver) Compress(ctx context.Context, sourcePaths []string, dstFile string, _ string) error { |
| 30 | var err error |
nothing calls this directly
no test coverage detected