Skip to content

Commit d409679

Browse files
authored
Update presigned_url.py
1 parent 72029a7 commit d409679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/example_code/s3/s3_basics/presigned_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def usage_demo():
7171
if args.action == "get":
7272
response = requests.get(url)
7373
if response.status_code == 200:
74-
with open(args.key, 'wb') as object_file:
74+
with open(args.key.split("/")[-1], 'wb') as object_file:
7575
object_file.write(response.content)
7676
elif args.action == "put":
7777
print("Putting data to the URL.")

0 commit comments

Comments
 (0)