Skip to content

Commit

Permalink
fix(watch): trigger change event for creation/deletion of children in…
Browse files Browse the repository at this point in the history
… a folder
  • Loading branch information
imsnif committed Dec 24, 2019
1 parent e8b9758 commit b1b7884
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/volume.ts
Expand Up @@ -2563,6 +2563,9 @@ export class FSWatcher extends EventEmitter {

this._link.getNode().on('change', this._onNodeChange);

this._link.on('child:add', this._onNodeChange);
this._link.on('child:delete', this._onNodeChange);

const parent = this._link.parent;
if (parent) {
// parent.on('child:add', this._onParentChild);
Expand Down

0 comments on commit b1b7884

Please sign in to comment.