make_path#
- petpal.utils.useful_functions.make_path(paths: list[str])#
Creates a new path in local system by joining paths, and making any new directories, if necessary.
- Parameters:
paths (list[str]) – A list containing strings to be joined as a path in the system directory.
Note
If the final string provided includes a period ‘.’ (a proxy for checking if the path is a file name) this method will result in creating the folder above the last provided string in the list.