def METHOD_NAME(url):
    assert isinstance(url, str)
    m = hashlib.sha256()
    m.update(str.encode(url))
    filepath = get_dir() / f"{str(m.hexdigest())}.{Path(url).name}"
    if download:
        _download(filepath, url, refresh=refresh)
    return str(filepath.resolve())