b2sdk.scan.path

class b2sdk.scan.path.AbstractPath(relative_path: str, mod_time: int, size: int)[source]

Bases: ABC

Represent a path in a source or destination folder - be it B2 or local

__init__(relative_path: str, mod_time: int, size: int)[source]
abstract is_visible() bool[source]

Is the path visible/not deleted on it’s storage

class b2sdk.scan.path.LocalPath(absolute_path: str, relative_path: str, mod_time: int, size: int)[source]

Bases: AbstractPath

__init__(absolute_path: str, relative_path: str, mod_time: int, size: int)[source]
absolute_path
is_visible() bool[source]

Is the path visible/not deleted on it’s storage

relative_path
mod_time
size
class b2sdk.scan.path.B2Path(relative_path: str, selected_version: FileVersion, all_versions: List[FileVersion])[source]

Bases: AbstractPath

__init__(relative_path: str, selected_version: FileVersion, all_versions: List[FileVersion])[source]
selected_version
all_versions
relative_path
is_visible() bool[source]

Is the path visible/not deleted on it’s storage

property mod_time: int
property size: int