mikeal/watch — Issue #14: Events always fire 2 times
Author: Katoka
Created: 2011-11-08 15:11:11+00:00
State: open

When i use the Example Code:

watch.createMonitor('/home/mikeal', function (monitor) {
monitor.files['/home/mikeal/.zshrc'] // Stat object for my zshrc.
monitor.on("created", function (f, stat) {
// Handle file changes
})
monitor.on("changed", function (f, curr, prev) {
// Handle new files
})
monitor.on("removed", function (f, stat) {
// Handle removed files
})
}

The Create Events fire 2 times. Any reason why this could happen? I looked into the Code but have no idea.