How can I use boto to stream a file out of Amazon S3 to Rackspace Cloudfiles?
问题 I\'m copying a file from S3 to Cloudfiles, and I would like to avoid writing the file to disk. The Python-Cloudfiles library has an object.stream() call that looks to be what I need, but I can\'t find an equivalent call in boto. I\'m hoping that I would be able to do something like: shutil.copyfileobj(s3Object.stream(),rsObject.stream()) Is this possible with boto (or I suppose any other s3 library)? 回答1: The Key object in boto, which represents on object in S3, can be used like an iterator