s3tools/s3cmd — pull request #72 by samoverton (2012-07-25 11:57:44+00:00)
Title: fix bug in put --recursive

I was running into this issue:

-bash-3.2# ./s3cmd -c .s3cfg put --recursive /mnt/some/data s3://blah/prefix/

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: KeyErr: 'remote_uri'
S3cmd: 1.1.0-beta3

Traceback (most recent call last):
File "./s3cmd", line 1810, in ?
main()
File "./s3cmd", line 1751, in main
cmd_func(args)
File "./s3cmd", line 300, in cmd_object_put
uri_final = S3Uri(local_list[key]['remote_uri'])
KeyError: 'remote_uri'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the above lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

---
This pull request fixes this bug.