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')
Get command line args from the user.
dataset/ETHPy150Open bloomreach/briefly/src/briefly/fs.py/s3sync--crossover with--dataset/ETHPy150Open vmware/pyvmomi-community-samples/samples/hello_world_vcenter_with_yaml_recorder.py/get_args