title: Create a zip file on S3 from files on S3 in Python
body: <p>I'm trying to compress the all files keeping the same directory structure that are in the directory on the S3 bucket and put that zip on the S3 bucket.</p>
  
  <p>Unpacking a zip file from the S3 bucket to S3 bucket is quite easy with BytesIO and zipfile, but I'm not sure how to do this with a directory containing a hundred files.</p>
  
  <p>I found this link helpful but the post is for Lambda Node.
  <a href="https://stackoverflow.com/questions/38633577/create-a-zip-file-on-s3-from-files-on-s3-using-lambda-node">Create a zip file on S3 from files on S3 using Lambda Node</a></p>