def s3sync(source, target):
  if is_s3url(source) and is_s3url(target):
    get_fs(source).copy_files(source, target)
  elif is_s3url(source):
    get_fs(source).get_files(target)
  elif is_s3url(target):
    get_fs(target).put_files(source)
  else:
    raise Exception('Unkown s3 operation')
Upload or download from/to S3, or copy from one s3 location to another S3 location
dataset/ETHPy150Open bloomreach/briefly/src/briefly/fs.py/s3sync