We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22fdfab commit 093f8d6Copy full SHA for 093f8d6
invokeai/backend/model_manager/configs/factory.py
@@ -333,7 +333,11 @@ def _validate_path_looks_like_model(path: Path) -> None:
333
# For directories, do a quick file count check with early exit
334
total_files = 0
335
# Ignore hidden files and directories
336
- paths_to_check = (p for p in path.rglob("*") if not p.name.startswith("."))
+ paths_to_check = (
337
+ p
338
+ for p in path.rglob("*")
339
+ if not p.name.startswith(".") and not any(part.startswith(".") for part in p.parts)
340
+ )
341
for item in paths_to_check:
342
if item.is_file():
343
total_files += 1
0 commit comments