Skip to content

base

django_spire.contrib.sync.file.source.base

Source

Bases: Protocol

download

Source code in django_spire/contrib/sync/file/source/base.py
def download(
    self,
    remote_path: str,
    local_path: Path,
    callback: Callable[[int, int], None] | None = None,
) -> None: ...

list_dir

Source code in django_spire/contrib/sync/file/source/base.py
def list_dir(self, remote_path: str) -> list[str]: ...

upload

Source code in django_spire/contrib/sync/file/source/base.py
def upload(
    self,
    local_path: Path,
    remote_path: str,
    callback: Callable[[int, int], None] | None = None,
) -> None: ...