split_path_name_ext¶
- split_path_name_ext(full_path)[source]¶
Split path of a file to directory path, file name and extensions.
- Parameters:
full_path (PathLike | str) – Path to a file.
- Returns:
Three parts of the input file path: -
Path
- Parent directory path -str
- File name -list(str)
- File extensions- Return type:
Examples
>>> from tiatoolbox.utils.misc import split_path_name_ext >>> dir_path, file_name, extensions = split_path_name_ext(full_path)