Skip to content

Commit

Permalink
cmd/load: fix TrimSuffix filePath
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Jan 8, 2024
1 parent 64bb330 commit a5dd13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func load(ctx *cli.Context) error {
if err != nil {
return fmt.Errorf("failed to get absolute path of %s: %s", src, err)
}
fileBlob, err := object.CreateStorage("file", strings.TrimRight(src, filepath.Base(srcAbsPath)), "", "", "")
fileBlob, err := object.CreateStorage("file", strings.TrimSuffix(src, filepath.Base(srcAbsPath)), "", "", "")
if err != nil {
return err
}
Expand Down

0 comments on commit a5dd13e

Please sign in to comment.