MCPcopy
hub / github.com/zai-org/CogView / ensure_directory_exists

Function ensure_directory_exists

utils.py:169–172  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

167
168
169def ensure_directory_exists(filename):
170 dirname = os.path.dirname(filename)
171 if not os.path.exists(dirname):
172 os.makedirs(dirname)
173
174
175def get_checkpoint_tracker_filename(checkpoints_path):

Callers 2

save_zero_checkpointFunction · 0.85
save_checkpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected