b2sdk.sync.path

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

Bases: abc.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.sync.path.LocalSyncPath(absolute_path: str, relative_path: str, mod_time: int, size: int)[source]

Bases: b2sdk.sync.path.AbstractSyncPath

__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.sync.path.B2SyncPath(relative_path: str, selected_version: b2sdk.file_version.FileVersion, all_versions: List[b2sdk.file_version.FileVersion])[source]

Bases: b2sdk.sync.path.AbstractSyncPath

__init__(relative_path: str, selected_version: b2sdk.file_version.FileVersion, all_versions: List[b2sdk.file_version.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