MCPcopy Index your code
hub / github.com/SnailDev/github-hot-hub / ensure_dir

Function ensure_dir

util.py:18–21  ·  view source on GitHub ↗
(file: str)

Source from the content-addressed store, hash-verified

16
17
18def ensure_dir(file: str):
19 directory = os.path.abspath(os.path.dirname(file))
20 if not os.path.exists(directory):
21 os.makedirs(directory)
22
23
24def write_text(file: str, text: str):

Callers 1

write_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected