summaryrefslogtreecommitdiff
path: root/megapixels/app/site/s3.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-12-16 00:11:20 +0100
committerJules Laplace <julescarbon@gmail.com>2018-12-16 00:11:20 +0100
commit3b10acc73247ec703ed47f0423e7d255a91f074e (patch)
treefd1a86c51858a3a69d6181f60499dd7953b960a9 /megapixels/app/site/s3.py
parentf1461ec2727f26dacaf21a03d8698cf3f674c2cf (diff)
tabulator
Diffstat (limited to 'megapixels/app/site/s3.py')
-rw-r--r--megapixels/app/site/s3.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/megapixels/app/site/s3.py b/megapixels/app/site/s3.py
index 99726a4d..5464d464 100644
--- a/megapixels/app/site/s3.py
+++ b/megapixels/app/site/s3.py
@@ -3,6 +3,9 @@ import glob
import boto3
def sync_directory(base_fn, s3_path, metadata):
+ """
+ Synchronize a local assets folder with S3
+ """
fns = {}
for fn in glob.glob(os.path.join(base_fn, 'assets/*')):
fns[os.path.basename(fn)] = True