Permalink
Browse files

fix logic error for put --recursive

  • Loading branch information...
1 parent 6012d1b commit da38de0e6dc9851a56001ec457251e8cf1fff203 Sam Overton committed Jul 25, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 s3cmd
View
3 s3cmd
@@ -270,7 +270,8 @@ def cmd_object_put(args):
for key in local_list:
if key == "-":
raise ParameterError("Cannot specify multiple local files if uploading from '-' (ie stdin)")
- elif single_file_local and local_list.keys()[0] == "-" and destination_base.endswith("/"):
+
+ if single_file_local and local_list.keys()[0] == "-" and destination_base.endswith("/"):
raise ParameterError("Destination S3 URI must not end with '/' when uploading from stdin.")
elif not destination_base.endswith("/"):
if not single_file_local:

0 comments on commit da38de0

Please sign in to comment.