Inder-26
Cloud pushed and s3 data storage implemented
8268752
raw
history blame contribute delete
319 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_folder_from_s3(self, folder, aws_bucket_url):
command = f"aws s3 sync {aws_bucket_url} {folder} "
os.system(command)