adobe/brackets — pull request #6673 by bchintx (2014-01-28 22:13:43+00:00)
Title: [REVIEW-ONLY] Implement node-module add-on for native Windows file watching

Fixes issue #6551- "[File Watchers] Can not externally rename a directory with subfolders on Windows"

Requires associated [pull request #412](https://github.com/adobe/brackets-shell/pull/412) from brackets-shell repo.

Replace the previous, node-based fs.watch() implementation with a new, Windows-specific node-module. In the previous implementation, node's fs.watch() doesn't (yet) support the recursive subfolder flag of ReadDirectoryChangesW(). With the new, native C++ node add-on, we can now support this recursive mode, and only have to set a single watcher on the entire project tree.

BTW, this has the added benefit of actually "locking" the root of the project folder tree so that it can't be deleted/renamed out from underneath Brackets too.