From c6c6671afa5f5884b0eacd3a5314f445de595c2e Mon Sep 17 00:00:00 2001 From: RoLuoGan <15197446227@163.com> Date: Wed, 18 Sep 2024 16:05:05 +0800 Subject: [PATCH] fix(dfget): Change file path --- client/dfget/dfget.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/dfget/dfget.go b/client/dfget/dfget.go index 932c6617b25..167cd496966 100644 --- a/client/dfget/dfget.go +++ b/client/dfget/dfget.go @@ -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)