full_path_split
- lib.utils.full_path_split(path: str) list[str]
Split a file path into all of its parts.
- Parameters:
path (str) – The full path to be split
- Return type:
The full path split into a separate item for each part
Example
>>> from lib.utils import full_path_split >>> full_path_split("/usr/local/bin/python") ['usr', 'local', 'bin', 'python'] >>> full_path_split("relative/path/to/file.txt") ['relative', 'path', 'to', 'file.txt']]