MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / ensure_dir

Function ensure_dir

common/common.py:131–139  ·  view source on GitHub ↗

r"""Make sure the directory exists, if it does not exist, create it Args: dir_path (str): directory path

(dir_path)

Source from the content-addressed store, hash-verified

129
130
131def 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected