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
when watching a directory, if a file changes, the directory it is placed within also gets an update, except for the given directory
to reproduce
make a testing directory, write
constCheapWatch=require("cheap-watch")// or a local importconst{ join }=require("path")constwatcher=newCheapWatch({dir: join(__dirname,"testing")})watcher.init()watcher.on("+",({ path, stats })=>stats.isDirectory()&&console.log(path))
into any javascript file, run it and then add files to the testing directory. nothing should happen, but if you add a directory into the testing directory and then add files to that directory the name of the new directory should be console-logged
expectation
i would expect cheap-watch to fire an event on the parent directory too, if a file in it would be changed, added or removed
system and version
i am running on Windows 10, 64bit with node version 16.3.0
The text was updated successfully, but these errors were encountered:
the problem
when watching a directory, if a file changes, the directory it is placed within also gets an update, except for the given directory
to reproduce
make a
testing
directory, writeinto any javascript file, run it and then add files to the
testing
directory. nothing should happen, but if you add a directory into the testing directory and then add files to that directory the name of the new directory should be console-loggedexpectation
i would expect cheap-watch to fire an event on the parent directory too, if a file in it would be changed, added or removed
system and version
i am running on Windows 10, 64bit with node version 16.3.0
The text was updated successfully, but these errors were encountered: