check_folder#
- caf.van.utilities.check_folder(path, name, create=False)[source]#
Checks if given path is an existing folder.
Can create a new folder if it doesn’t already exist.
- Parameters:
- Returns:
True if the folder already exists and False if the folder had to be created.
- Return type:
- Raises:
NotADirectoryError – If the given path is a file not a folder.
FileNotFoundError – If the folder doesn’t exist and create is False.