def METHOD_NAME(stat, list_files, fail_if_any, url, exclude):
    bucket, prefix = parse_s3_url(url)
    stats = BucketStats(
        bucket, prefix, list_files=list_files, stat=stat, exclude=exclude
    )
    stats.run()
    if fail_if_any and stats.found_any:
        sys.exit(1)