def validate_path()

in remote_settings/subcommands/create.py [0:0]


def validate_path(value):
    if not os.path.exists(value):
        raise argparse.ArgumentTypeError(f"invalid value '{value}' (path does not exist)")
    return value