MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / ensure_directory_exists

Function ensure_directory_exists

mbench/utils.py:133–140  ·  view source on GitHub ↗

Ensure that a directory exists, creating it if necessary Args: path: Directory path to create

(path: str)

Source from the content-addressed store, hash-verified

131
132
133def ensure_directory_exists(path: str) -> None:
134 """
135 Ensure that a directory exists, creating it if necessary
136
137 Args:
138 path: Directory path to create
139 """
140 os.makedirs(path, exist_ok=True)
141
142def load_dimension_info(json_dir, dimension):
143 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected