MCPcopy
hub / github.com/pythongosssss/ComfyUI-Custom-Scripts / get_allowed_dirs

Function get_allowed_dirs

py/text_files.py:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def get_allowed_dirs():
10 dir = os.path.abspath(os.path.join(__file__, "../../user"))
11 file = os.path.join(dir, "text_file_dirs.json")
12 with open(file, "r") as f:
13 return json.loads(f.read())
14
15
16def get_valid_dirs():

Callers 2

get_valid_dirsFunction · 0.85
get_dir_from_nameFunction · 0.85

Calls 1

readMethod · 0.80

Tested by

no test coverage detected