Skip to content

Commit

Permalink
meh
Browse files Browse the repository at this point in the history
  • Loading branch information
anjor committed Jul 18, 2024
1 parent 233a2c1 commit 2bdb27d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd-car-split.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"io"
"io/fs"
"os"
"strconv"
"path/filepath"
"strconv"

commcid "github.com/filecoin-project/go-fil-commcid"
commp "github.com/filecoin-project/go-fil-commp-hashhash"
Expand Down Expand Up @@ -88,12 +88,13 @@ func newCmd_SplitCar() *cli.Command {
Value: "metadata.csv",
Required: false,
Usage: "Filename for metadata. Defaults to metadata.csv",
},
&cli.StringFlag{
},
&cli.StringFlag{
Name: "output-dir",
Aliases: []string{"o"},
Usage: "Output directory",
Required: false,
Value: ".",
},
},
Action: func(c *cli.Context) error {
Expand Down Expand Up @@ -130,6 +131,8 @@ func newCmd_SplitCar() *cli.Command {
epoch := c.Int("epoch")
maxFileSize := c.Int64("size")
outputDir := c.String("output-dir")
meta := c.String("metadata")

if outputDir == "" {
outputDir = "."
}
Expand Down

0 comments on commit 2bdb27d

Please sign in to comment.