Axosoft / nsfw

A super fast and scaleable file watcher that provides a consistent interface on Linux, OSX and Windows
MIT License
901 stars 113 forks source link

M1 wrong events fired #138

Open muratangin187 opened 3 years ago

muratangin187 commented 3 years ago
Screen Shot 2021-06-01 at 15 27 34

I have a structure like that, he. I tried to copy alex to same directory, the resulting structure will be like that.

Screen Shot 2021-06-01 at 15 28 08

In windows, I got 4 event with action 0 for each item. But in my laptop(m1 air) I get these events(I filtered change events for a clear output) which is not expected.

Screen Shot 2021-06-01 at 15 29 42

The code I used for testing:

var nsfw = require('nsfw');
var watcher1;
return nsfw('/Users/muratangin/Downloads/Academic Work', function(events) {
    console.log(events.filter(e=>e.action != 2));
},{debounceMS: 1000}).then(function(watcher) {
    watcher1 = watcher;
    watcher.start();
    console.log("initialized");
});
muratangin187 commented 3 years ago

I reproduce same thing with older macs, it is specific to Mac OS I guess. Is there any idea on it?