|downloading from s3||Daniel W||7/19/12 2:23 PM|
I'm trying to use boto to download a large file from an s3 bucket, and I'm a little confused by which method I should use.
Am I right that I should be using key.getfile()?
|Re: [boto-users] downloading from s3||Chris Moyer||7/19/12 2:55 PM|
Key objects are similar to file objects in python, so you can just do read() to get the contents, or one of the special methods:
But I prefer just to treat it as a string, unless you specifically want it downloaded to your file system.
Sent from my iPhoneChris Moyer
VP of Technology, Newstex LLC
Please log all support requests to http://support.newstex.com
|Re: [boto-users] downloading from s3||Daniel W||7/20/12 7:24 AM|
Ah, thanks Chris.
I had tried get_contents_to_filename() and it stopped mid-download, so I figured I was doing something wrong. Turns out it was a disk space issue.