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

Function ensure_output_dirs

webui.py:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def ensure_output_dirs():
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)
24
25
26def init():

Callers 1

initFunction · 0.85

Calls 1

check_and_createFunction · 0.85

Tested by

no test coverage detected