From 67809d105bd4afd519da69c674059a99f5409c0d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 24 Nov 2015 14:13:43 -0800 Subject: [PATCH] rm: For incomplete uploads do not issue a stat request. --- rm-main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rm-main.go b/rm-main.go index ebbc30aa..04469cd8 100644 --- a/rm-main.go +++ b/rm-main.go @@ -110,13 +110,14 @@ func checkRmSyntax(ctx *cli.Context) { // Set command flags from context. isForce := ctx.Bool("force") isRecursive := ctx.Bool("recursive") + isIncomplete := ctx.Bool("incomplete") if !ctx.Args().Present() { exitCode := 1 cli.ShowCommandHelpAndExit(ctx, "rm", exitCode) } - if !isRecursive { + if !isRecursive && !isIncomplete { URLs, err := args2URLs(ctx.Args()) fatalIf(err.Trace(ctx.Args()...), "Unable to parse arguments.") for _, url := range URLs {