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