The fs.watch method is used to watch for changes in a file or a directory but may not be consistent across platforms due to its reliance on ______.

  • inotify
  • polling
  • event-driven
  • file system events
The fs.watch method relies on polling on some platforms to detect file and directory changes. This polling approach may not be consistent across platforms and can have performance implications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *