MCPcopy
hub / github.com/Akegarasu/ChatGLM-webui / check_and_create

Function check_and_create

webui.py:18–20  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

16 folders = ["outputs/save", "outputs/markdown"]
17
18 def check_and_create(p):
19 if not os.path.exists(p):
20 os.makedirs(p)
21
22 for i in folders:
23 check_and_create(i)

Callers 1

ensure_output_dirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected