This commit is contained in:
rewolf 2025-04-11 09:46:27 -04:00 committed by GitHub
commit 667a12b3c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1653,7 +1653,8 @@ class LoadImage:
@classmethod
def INPUT_TYPES(s):
input_dir = folder_paths.get_input_directory()
files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))]
strip_inputdir = lambda path: path[len(input_dir)+1:]
files = [strip_inputdir(os.path.join(dir,f)) for (dir, subdirs, files) in os.walk(input_dir, followlinks=True) for f in files]
return {"required":
{"image": (sorted(files), {"image_upload": True})},
}