From b226996977bb6ed4f22f420f197e281d4fe7d49b Mon Sep 17 00:00:00 2001 From: RoLuoGan <15197446227@163.com> Date: Mon, 23 Sep 2024 10:40:52 +0800 Subject: [PATCH] fix(dfget): Change file path (#3519) --- 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)