diff --git a/src/hyfi/main/config.py b/src/hyfi/main/config.py index 01ce7b6c..f4038b46 100644 --- a/src/hyfi/main/config.py +++ b/src/hyfi/main/config.py @@ -238,12 +238,15 @@ def get_path( self, path_name: str, base_dir: Optional[Union[Path, str]] = None, + ensure_exists: bool = False, ) -> Optional[Path]: """ Get the path to a directory or file. """ return ( - self.project.get_path(path_name, base_dir=base_dir) + self.project.get_path( + path_name, base_dir=base_dir, ensure_exists=ensure_exists + ) if self.project else None )