_check_input_exists
- _check_input_exists(config_dict: Dict[str, Any], input_var_name: str, is_file: bool = False) Dict[str, Any] [source]
Check that the input path
config.base_path / input_var
exists.- Parameters:
config_dict (Dict[str, Any]) – Dict of the Config.
input_var_name (str) – Variable name, used to get value and format the error message.
is_file (bool) – Whether to check if the path is a valid file or folder. Defaults to False
- Returns:
Value of
input_var
- Return type:
Dict[str, Any]
- Raises:
ValueError – If
is_file
is True and the path is not a file.ValueError – If
is_file
is False and the path is not a folder.