From b5d923dd0a16c883376d188fbe1e4cb31ef6d051 Mon Sep 17 00:00:00 2001 From: anjor Date: Tue, 12 Nov 2024 12:35:24 +0000 Subject: [PATCH] fix path bug --- cmd-car-split.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-car-split.go b/cmd-car-split.go index adbf1017..3707149f 100644 --- a/cmd-car-split.go +++ b/cmd-car-split.go @@ -366,7 +366,7 @@ func newCmd_SplitCar() *cli.Command { } defer w.Flush() for idx, c := range carFiles { - commP, paddedPieceSize, err := calcCommP(c.name) + commP, paddedPieceSize, err := calcCommP(filepath.Join(outputDir, c.name)) if err != nil { return fmt.Errorf("failed to calculate commP: %w", err) }