Guest User

Untitled

a guest
Jan 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. with tarfile.open(archive_filename, "w:gz") as tar:
  2. for pb in designated_objects:
  3. bucket.download_file(pb.key, pb.key)
  4. tar.add(pb.key)
  5. os.delete(pb.key)
Add Comment
Please, Sign In to add comment