Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #20 from pulseenergy/master

Fixing KeyError when copying multiple keys (SourceForge bug 3091912)
  • Loading branch information...
commit f49ecb39753485fe0430768e5cb41bfd4f9688df 2 parents 16d5faf + af984ba
@mludvig mludvig authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 s3cmd
View
12 s3cmd
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
## Amazon S3 manager
## Author: Michal Ludvig <michal@logix.cz>
@@ -509,11 +509,11 @@ def subcmd_cp_mv(args, process_fce, action_str, message):
for key in remote_list:
remote_list[key]['dest_name'] = destination_base + key
else:
- key = remote_list.keys()[0]
- if destination_base.endswith("/"):
- remote_list[key]['dest_name'] = destination_base + key
- else:
- remote_list[key]['dest_name'] = destination_base
+ for key in remote_list:
+ if destination_base.endswith("/"):
+ remote_list[key]['dest_name'] = destination_base + key
+ else:
+ remote_list[key]['dest_name'] = destination_base
if cfg.dry_run:
for key in exclude_list:

0 comments on commit f49ecb3

Please sign in to comment.
Something went wrong with that request. Please try again.