safe_path_join#

openstef_core.utils.path.safe_path_join(base_path: Path, *path_components: str) Path[source]#

Join path components and reject paths that escape the base directory.

Parameters:
  • base_path (Path)

  • path_components (str)

Return type:

Path