From the course: AWS for Developers: S3

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Python SDK operations

Solution: Python SDK operations - Amazon Web Services (AWS) Tutorial

From the course: AWS for Developers: S3

Start my 1-month free trial

Solution: Python SDK operations

(upbeat music) - [Instructor] So now it's time for me to provide you with the solution that I created for this exercise. We'll start by looking at the code here. I didn't modify any of the methods from any of the work that we've done throughout this chapter, so I just used all of our existing methods. We'll start here on line 120. So I created a bucket. I uploaded a file from my local directory, called F1, to that bucket. I then copied a file from our primary bucket, the one that we're using for this course, over to that transient bucket, and the file that I copied was F3. I kept the name the same. Now, on line 123, I get a list of files from the bucket itself. So from the transient bucket, I get a list of files. I go ahead and store those files into a list so that I can use that later on. Now, I put a printout there so that you can see where we're at. And on line 25 I iterate across that list of files and…

Contents