yuanchuan / node-watch

A wrapper and enhancements for fs.watch
https://npm.im/node-watch
MIT License
340 stars 44 forks source link

'remove' event not triggered on windows #85

Closed kentarokai closed 5 years ago

kentarokai commented 5 years ago
home
└── dirA
    └── dirB
        └── file

When I remove (=Shift+Delete) dirA on explorer, no event triggered.

fs.watch() seems to emit

rename dirA\dirB\file
change dirA\dirB
rename dirA\dirB
change dirA
rename dirA

so, filtered ( https://github.com/yuanchuan/node-watch/blob/master/lib/watch.js#L62 ) will be blank.

yuanchuan commented 5 years ago

Oops.. That's a bug. I'll check it later

yuanchuan commented 5 years ago

Woud you tell me the Windows version, node, and node-watch version?

kentarokai commented 5 years ago
yuanchuan commented 5 years ago

Please try 0.6.2

kentarokai commented 5 years ago

@yuanchuan Verified your fix. Thank you!