mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-25 22:00:19 +08:00
Allow iteration over folder paths
This commit is contained in:
parent
0db040cc47
commit
f8120bbd72
@ -61,6 +61,9 @@ class FolderNames:
|
|||||||
def __len__(self):
|
def __len__(self):
|
||||||
return len(self.contents)
|
return len(self.contents)
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
return iter(self.contents)
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
return self.contents.items()
|
return self.contents.items()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user