mirror of
https://github.com/Zie619/n8n-workflows.git
synced 2025-11-25 03:15:25 +08:00
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.")
|
||||
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.")
|
||||
|
||||
Reference in New Issue
Block a user