Skip to content

Commit

Permalink
fix(dfget): Change file path (#3519)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoLuoGan authored Sep 23, 2024
1 parent 7bcbac9 commit b226996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/dfget/dfget.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func downloadFromSource(ctx context.Context, cfg *config.DfgetConfig, hdr map[st
}
defer func() {
if !renameOK {
tempPath := path.Join(filepath.Dir(cfg.Output), tempFile.Name())
tempPath := tempFile.Name()
removeErr := os.Remove(tempPath)
if removeErr != nil {
wLog.Infof("remove temporary file %s error: %s", tempPath, removeErr)
Expand Down

0 comments on commit b226996

Please sign in to comment.