make_dir¶
- lsst.ts.imsim.utils.make_dir(new_dir: str, exist_ok: bool = True) None ¶
Make the new directory.
Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except that any intermediate path segment (not just the rightmost) will be created if it does not exist.
Parameters¶
- new_dirstr
New directory.
- exist_okbool, optional
If the target directory already exists, raise an OSError if exist_ok is False. Otherwise no exception is raised. (the default is True.)