Directory Validation: Checks if the path exists and is accessible
Duplicate Check: Verifies this directory (or parent) isn’t already watched
Database Entry: Adds directory to watched_directories table
File Discovery: Recursively scans for all files
Pipeline Start: Begins processing files through the 4-stage pipeline
File Watcher: Starts monitoring filesystem for changes
The indexing process runs asynchronously. Use the /api/updates endpoint to monitor progress in real-time.
Watching very large directories (thousands of files) may take significant time to complete initial indexing. The backend processes files sequentially to avoid overwhelming system resources.