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.
This commit is contained in:
Devin
2026-10-21 14:32:35 -07:00
parent 2b0733720d
commit ade673dc1c
+3 -1
View File
@@ -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 {