Skip to content

doc: clarify fs.watch and inodes on linux, os x

Checklist
  • documentation is changed or added
  • the commit message follows commit guidelines
Affected core subsystem(s)

doc

Description of change

On Linux and OS X systems, fs.watch resolves the watched path to an inode. This clarifies that fs.watch watches the inode and not the path. If the inode of the path subsequently changes, fs.watch will continue watching the original inode and events for the path will no longer be emitted. This is expected behavior.

Fixes: https://github.com/nodejs/node/issues/5039

Merge request reports

Loading