py4ai.data.layer.fs package

Helpers functions for handling file systems paths.

py4ai.data.layer.fs.complete_path_split(path: str) List[str]

Split path into single directory names.

Parameters

path – path as string

Returns

list of directory names.

py4ai.data.layer.fs.create_dir_if_not_exists(directory: Union[str, Path]) Union[str, Path]

Create the directory if it does not exist.

Parameters

directory – directory, either provided as string or as path

Returns

directory pash, as a string or as path depending on the input type.

Submodules