Skip to content

Instantly share code, notes, and snippets.

View vladlosk's full-sized avatar
:octocat:

Vladimir vladlosk

:octocat:
View GitHub Profile
@vladlosk
vladlosk / UploadDirS3.py
Last active September 2, 2017 18:26 — forked from feelinc/UploadDirS3.py
Upload folder contents to AWS S3
#!/usr/bin/python3
import os
import sys
import boto3
# get an access token, local (from) directory, and S3 (to) directory
# from the command-line
local_directory, bucket, destination = sys.argv[1:4]