ogs5py.tools.tools.split_file_path

ogs5py.tools.tools.split_file_path(path, abs_path=False)[source]

Decompose a path to a file.

Decompose into the dir-path, the basename and the file-extension.

Parameters
  • path (string) – string containing the path to a file

  • abs_path (bool, optional) – convert the path to an absolut path. Default: False

Returns

result – tuple containing the dir-path, basename and file-extension

Return type

tuple of strings