r"""Make sure the directory exists, if it does not exist, create it Args: dir_path (str): directory path
(dir_path)
| 129 | |
| 130 | |
| 131 | def ensure_dir(dir_path): |
| 132 | r"""Make sure the directory exists, if it does not exist, create it |
| 133 | |
| 134 | Args: |
| 135 | dir_path (str): directory path |
| 136 | |
| 137 | """ |
| 138 | if not os.path.exists(dir_path): |
| 139 | os.makedirs(dir_path) |
nothing calls this directly
no outgoing calls
no test coverage detected