From f8120bbd7204c48524385872c9679e717f36206c Mon Sep 17 00:00:00 2001 From: Christopher Jones <8274496+cjonesuk@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:01:17 +0000 Subject: [PATCH] Allow iteration over folder paths --- comfy/cmd/folder_paths.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comfy/cmd/folder_paths.py b/comfy/cmd/folder_paths.py index c6a7fcd16..0dd1c722a 100644 --- a/comfy/cmd/folder_paths.py +++ b/comfy/cmd/folder_paths.py @@ -61,6 +61,9 @@ class FolderNames: def __len__(self): return len(self.contents) + def __iter__(self): + return iter(self.contents) + def items(self): return self.contents.items()