fix: enable recursive JSON discovery in indexWorkflows (fixes Issue #74)
This commit is contained in:
@@ -435,7 +435,7 @@ class WorkflowDatabase:
|
|||||||
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}
|
||||||
|
|
||||||
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:
|
if not json_files:
|
||||||
print(f"Warning: No JSON files found in '{self.workflows_dir}' directory.")
|
print(f"Warning: No JSON files found in '{self.workflows_dir}' directory.")
|
||||||
|
|||||||
Reference in New Issue
Block a user