def _get_file_name()

in bot/discord_cache.py [0:0]


def _get_file_name(url: str) -> Path:
    parsed = urlparse(url)
    file_path = Path(CACHE_PATH, parsed.path[1:])
    file_path.parent.mkdir(parents=True, exist_ok=True)
    return file_path