MCPcopy
hub / github.com/Comfy-Org/ComfyUI-Manager / get_nodes

Function get_nodes

scanner.py:328–343  ·  view source on GitHub ↗
(target_dir)

Source from the content-addressed store, hash-verified

326
327
328def get_nodes(target_dir):
329 py_files = []
330 directories = []
331
332 for item in os.listdir(target_dir):
333 if ".git" in item or "__pycache__" in item:
334 continue
335
336 path = os.path.abspath(os.path.join(target_dir, item))
337
338 if os.path.isfile(path) and item.endswith(".py"):
339 py_files.append(path)
340 elif os.path.isdir(path):
341 directories.append(path)
342
343 return py_files, directories
344
345
346def get_urls_from_list_file(list_file):

Callers 1

gen_jsonFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected