我正在尝试使用 aws cli 将文件从我的机器同步到 s3。应该很简单吧?
这是正在发生的事情:
$ aws s3 sync mydir/ s3://mybucket --profile me
'datetime.datetime' object has no attribute 'read'
Completed 1 part(s) with ... file(s) remaining
我知道没有权限问题,因为--recursive
如果使用相同的命令(带 )cp
代替sync
. 我已经尝试过添加--recursive
、使用--dryrun
和使用或不使用尾部斜杠,但没有变化。
我在 OS X 上,如果这很重要,系统 python 是 2.7.5 版。