Merge pull request #1485 from harshavardhana/incomplete
rm: For incomplete uploads do not issue a stat request.
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user