b2sdk._internal.scan.path

class b2sdk._internal.scan.path.AbstractPath(relative_path, mod_time, size)[source]

Bases: ABC

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

Parameters:
  • relative_path (str) –

  • mod_time (int) –

  • size (int) –

__init__(relative_path, mod_time, size)[source]
Parameters:
  • relative_path (str) –

  • mod_time (int) –

  • size (int) –

abstract is_visible()[source]

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

Return type:

bool

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

Bases: AbstractPath

Parameters:
  • absolute_path (str) –

  • relative_path (str) –

  • mod_time (int) –

  • size (int) –

__init__(absolute_path, relative_path, mod_time, size)[source]
Parameters:
  • absolute_path (str) –

  • relative_path (str) –

  • mod_time (int) –

  • size (int) –

absolute_path
is_visible()[source]

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

Return type:

bool

relative_path
mod_time
size
class b2sdk._internal.scan.path.B2Path(relative_path, selected_version, all_versions)[source]

Bases: AbstractPath

Parameters:
  • relative_path (str) –

  • selected_version (FileVersion) –

  • all_versions (list[FileVersion]) –

__init__(relative_path, selected_version, all_versions)[source]
Parameters:
  • relative_path (str) –

  • selected_version (FileVersion) –

  • all_versions (list[FileVersion]) –

selected_version
all_versions
relative_path
is_visible()[source]

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

Return type:

bool

property mod_time: int
property size: int