Function: watchFiles()
watchFiles(
paths,options?):FSWatcher
Watches files and directories for real-time changes, applying the shared ignore groups so it prunes the same paths findFiles skips for the same patterns.
Parameters
Section titled “Parameters”string | string[]
options?
Section titled “options?”Returns
Section titled “Returns”FSWatcher