Last active
January 6, 2019 19:52
-
-
Save seisvelas/5aee7bf3708c32c74a70f27e429301cc to your computer and use it in GitHub Desktop.
Reddit contribution (ca. 2013)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def upload(config_file): | |
bucket = s3.get_bucket(bucket_name) | |
# build a list of files already in the bucket | |
remote_files = {key.name : key.etag.strip('"') for key in bucket.list()} | |
# upload local files not already in the bucket | |
for root, dirs, files in os.walk(static_root): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment