fix: enable recursive JSON discovery in indexWorkflows (fixes Issue #74)

This commit is contained in:
Praveen Mudalgeri
2025-08-06 14:41:13 +05:30
parent c4885eee92
commit f1f0b6a781

View File

@@ -435,7 +435,7 @@ class WorkflowDatabase:
print(f"Warning: Workflows directory '{self.workflows_dir}' not found.")
return {'processed': 0, 'skipped': 0, 'errors': 0}
json_files = glob.glob(os.path.join(self.workflows_dir, "*.json"))
json_files = glob.glob(os.path.join(self.workflows_dir, "**", ".json"), recursive=True)
if not json_files:
print(f"Warning: No JSON files found in '{self.workflows_dir}' directory.")