Merge pull request #78 from PraveenMudalgeri/add-folder-support

fix: recursive workflow indexing in subdirectories (Issue #74)
This commit is contained in:
Eliad Shahar
2025-08-10 19:07:34 +03:00
committed by GitHub

View File

@@ -434,6 +434,7 @@ class WorkflowDatabase:
if not os.path.exists(self.workflows_dir): if not os.path.exists(self.workflows_dir):
print(f"Warning: Workflows directory '{self.workflows_dir}' not found.") print(f"Warning: Workflows directory '{self.workflows_dir}' not found.")
return {'processed': 0, 'skipped': 0, 'errors': 0} return {'processed': 0, 'skipped': 0, 'errors': 0}
workflows_path = Path(self.workflows_dir) workflows_path = Path(self.workflows_dir)
json_files = list(workflows_path.rglob("*.json")) json_files = list(workflows_path.rglob("*.json"))
# json_files = glob.glob(os.path.join(self.workflows_dir, "*.json"), recursive=True) # json_files = glob.glob(os.path.join(self.workflows_dir, "*.json"), recursive=True)