Skip to content

Bulk asynchronous downloader for multiple file hosts

250 B
Raw Blame
from __future__ import annotations

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from pathlib import Path


def exists[T: Path](path: T) -> T:
    if not path.exists():
        raise ValueError(f"'{path}' does not exists")
    return path