Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Fix separator for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
liuziba committed Jul 2, 2022
1 parent 8fff5e0 commit c1e7985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func GenerateCar(ctx context.Context, fileList []Finfo, parentPath string, tmpDi
}
node, err = BuildFileNode(ctx, item, dagServ, cidBuilder)
dagServ.Add(ctx, node)
cidMap[strings.Join(filepath.SplitList(path), "/")] = CidMapValue{false, node.Cid().String()}
cidMap[strings.Join(strings.Split(path, string(filepath.Separator)), "/")] = CidMapValue{false, node.Cid().String()}
if err != nil {
logger.Warn(err)
return
Expand Down

0 comments on commit c1e7985

Please sign in to comment.