Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def restore_glacier_contents(entries, type):
# Get list of Contents when More than 1000 Items
while s3_result['IsTruncated']:
continuation_key = s3_result['NextContinuationToken']
s3_result = s3_conn.list_objects_v2(Bucket=bucket, Prefix=prefix, Delimiter="/", ContinuationToken=continuation_key)
s3_result = client.list_objects_v2(Bucket=bucket, Prefix=prefix, ContinuationToken=continuation_key)
for file in s3_result['Contents']:
# Only Log Glacier Files
if file['StorageClass'] == 'GLACIER':
Expand Down Expand Up @@ -160,4 +160,4 @@ def makeform(root, fields):
b2.pack(side = RIGHT, padx = 5, pady = 5)

# Run
root.mainloop()
root.mainloop()