nivakaran's picture
Create s3_syncer.py
520d03d verified
raw
history blame contribute delete
311 Bytes
import os
class S3Sync:
def sync_folder_to_s3(self, folder, aws_bucket_url):
command=f"aws s3 sync {folder} {aws_bucket_url}"
os.system(command)
def sync_foldere_from_s3(self, folder, aws_bucket_url):
command=f"aws s3 sync {aws_bucket_url} {folder}"
os.system(command)