fkie_mas_pylib.interface.file_interface module

class fkie_mas_pylib.interface.file_interface.FileItem(path: str, *, mtime: float = 0, size: int = 0, readonly: bool = True, value: str = '', encoding='utf-8')

Bases: object

Parameters:
  • path (str) – absolute path of the file or directory

  • mtime (float) – time of last modification of path. The return value is a number giving the number of seconds since the epoch

  • size (int) – size, in bytes, of path

  • value (str) – content of the file

class fkie_mas_pylib.interface.file_interface.LogPathClearResult(node: str, result: bool = False, message: str = '')

Bases: object

Parameters:
  • node (str) – complete node name

  • result (bool) – Clear result.

  • message (str) – Message on error.

class fkie_mas_pylib.interface.file_interface.LogPathItem(node: str, screen_log: str = '', screen_log_exists: bool = False, ros_log: str = '', ros_log_exists: bool = False)

Bases: object

Parameters:
  • node (str) – complete node name

  • screen_log (str) – the absolute path to the screen log file.

  • screen_log_exists (bool) – False if the file does not exists.

  • ros_log (str) – the absolute path to the ros log file.

  • ros_log_exists (bool) – False if the file does not exists.

class fkie_mas_pylib.interface.file_interface.PathItem(path: str, mtime: float, size: int, path_type: str)

Bases: object

Parameters:
  • path (str) – absolute path of the file or directory

  • mtime (float) – time of last modification of path. The return value is a number giving the number of seconds since the epoch

  • size (int) – size, in bytes, of path

  • path_type (str) – one of types {file, dir, symlink, package}

class fkie_mas_pylib.interface.file_interface.RosPackage(name: str, path: str)

Bases: object