(ctx context.Context, srcDir, dstDir string)
| 551 | } |
| 552 | |
| 553 | func copyDecompressTree(ctx context.Context, srcDir, dstDir string) error { |
| 554 | entries, err := os.ReadDir(srcDir) |
| 555 | if err != nil { |
| 556 | return err |
| 557 | } |
| 558 | for _, entry := range entries { |
| 559 | if err := copyDecompressEntry(ctx, filepath.Join(srcDir, entry.Name()), filepath.Join(dstDir, entry.Name())); err != nil { |
| 560 | return err |
| 561 | } |
| 562 | } |
| 563 | return nil |
| 564 | } |
| 565 | |
| 566 | func copyDecompressEntry(ctx context.Context, srcPath, dstPath string) (retErr error) { |
| 567 | if err := ctx.Err(); err != nil { |
no test coverage detected