We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 18.04.1
The add event is not triggering on folder creating, same for unlink.
add
unlink
let rootWatcher = new INotifyWait(dir, { recursive: true }); rootWatcher.on('ready', () => console.log('watching now...')); rootWatcher.on('add', (filename, stats) => console.log('new file created : ' + filename)); rootWatcher.on('unknown', filename => console.log('unknown event...')); rootWatcher.on('unlink', filename => { console.log('deleted file : ' + filename); // rootWatcher.close(); });
The text was updated successfully, but these errors were encountered:
Never mind, there is the option watchDirectory that you have to set to true for this to happen. Not mentioned anywhere on the README.md
watchDirectory
true
Sorry, something went wrong.
No branches or pull requests
Ubuntu 18.04.1
The
add
event is not triggering on folder creating, same forunlink
.The text was updated successfully, but these errors were encountered: