Closed campersau closed 2 years ago
is.directory
is.file
fs.readdir
fs.watch
fs
asar
To test this I relied on the fact the the options are getting copied with Object.assign({}, options, {...}) so that I could delete the directory before fs.watch is called but after the is.directory / is.file checks.
Object.assign({}, options, {...})
Fixes https://github.com/yuanchuan/node-watch/issues/108
Thank you
is.directory
/is.file
/fs.readdir
and the actualfs.watch
call.fs
API to transparently support files contained inasar
archives butfs.watch
does not work for them. (See https://github.com/FredrikNoren/ungit/issues/1523)To test this I relied on the fact the the options are getting copied with
Object.assign({}, options, {...})
so that I could delete the directory beforefs.watch
is called but after theis.directory
/is.file
checks.Fixes https://github.com/yuanchuan/node-watch/issues/108