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

Method VALIDATE_INPUTS

py/text_files.py:86–90  ·  view source on GitHub ↗
(self, root_dir, file, **kwargs)

Source from the content-addressed store, hash-verified

84
85 @classmethod
86 def VALIDATE_INPUTS(self, root_dir, file, **kwargs):
87 if file == "[none]" or not file or not file.strip():
88 return True
89 get_file(root_dir, file)
90 return True
91
92 def load_text(self, **kwargs):
93 self.file = get_file(kwargs["root_dir"], kwargs["file"])

Callers

nothing calls this directly

Calls 1

get_fileFunction · 0.85

Tested by

no test coverage detected