From ade673dc1ce1f52ea1c7dafd19468de6249c53df Mon Sep 17 00:00:00 2001 From: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 14:32:35 -0700 Subject: [PATCH] upload: still upload files collected before a walk error A walk that aborts partway used to leave the already-uploaded files behind; collecting paths first must not drop them, so upload what was gathered and still exit non-zero. --- weed/command/upload.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weed/command/upload.go b/weed/command/upload.go index b68839a8fa..123728b262 100644 --- a/weed/command/upload.go +++ b/weed/command/upload.go @@ -106,7 +106,6 @@ func runUpload(cmd *Command, args []string) bool { }) if err != nil { fmt.Println(err.Error()) - return false } concurrency := *upload.concurrency @@ -172,6 +171,9 @@ func runUpload(cmd *Command, args []string) bool { if <-printDone { return false } + if err != nil { + return false + } } else { parts, e := operation.NewFileParts(args) if e != nil {