You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(directory-watcher): address review feedback for P1 and P2
P1: Fixed directory removal detection to check wasWatchedDir state
- os.Stat() fails for deleted directories, leaving isDir=false
- Now checks both current state (isDir) and previous state (wasWatchedDir)
- Prevents orphaned watches when directories are deleted/renamed
P2: Corrected recursive=false semantics to only watch root directory
- recursive=false now ignores subdirectories completely (no watches, no replication)
- recursive=true watches entire tree recursively
- Added TODO to document this behavior on litestream.io
- Updated BasicLifecycle test to use recursive=true since it needs subdirectory detection
All 9 integration tests pass (129.0s total).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments