使用watch监视文件变动,为什么新增一个文件产生两个created事件?
有人使用到watch吗?
2 回复
貌似有平台兼容性的问题, 我讲不来, 直接看 StackOverflow: http://stackoverflow.com/questions/11080132/nodejs-filesystem-watch-throwing-event-twice-or-more-often 用模块吧, 我之前用过这个: https://github.com/paulmillr/chokidar