MCPcopy Index your code
hub / github.com/showlab/Code2Video / get_output_dir

Function get_output_dir

src/utils.py:185–192  ·  view source on GitHub ↗
(idx, knowledge_point, base_dir, get_safe_name=False)

Source from the content-addressed store, hash-verified

183
184
185def get_output_dir(idx, knowledge_point, base_dir, get_safe_name=False):
186 safe_name = topic_to_safe_name(knowledge_point)
187 # Prefix with idx-
188 folder_name = f"{idx}-{safe_name}"
189 if get_safe_name:
190 return Path(base_dir) / folder_name, safe_name
191
192 return Path(base_dir) / folder_name
193
194
195def eva_video_list(knowledge_points, base_dir):

Callers 2

eva_video_listFunction · 0.85
__init__Method · 0.85

Calls 1

topic_to_safe_nameFunction · 0.85

Tested by

no test coverage detected