From bca065fed2cf7effde82760ae52528bba1da4ef4 Mon Sep 17 00:00:00 2001 From: Anjor Kanekar Date: Wed, 13 Nov 2024 15:50:56 +0000 Subject: [PATCH] fix path bug (#186) --- 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) }