Skip to content

Commit

Permalink
Support paths with global pattern symbols
Browse files Browse the repository at this point in the history
On chokidar watcher globbing it's used to retrieve files with global pattern (./*.js for example), this causes don't send watcher events on folders with global pattern simbols like "Program Files (x86)" or "Folder [1]"

lcu-connector don't need globbing because it's always watching for lockfile, disabling it can support all folders safely
  • Loading branch information
MitsuhaKitsune authored Feb 23, 2018
1 parent f478782 commit d9e4910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class LCUConnector extends EventEmitter {
}

const lockfilePath = path.join(this._dirPath, 'lockfile');
this._lockfileWatcher = chokidar.watch(lockfilePath);
this._lockfileWatcher = chokidar.watch(lockfilePath, { disableGlobbing: true });

this._lockfileWatcher.on('add', this._onFileCreated.bind(this));
this._lockfileWatcher.on('unlink', this._onFileRemoved.bind(this));
Expand Down

0 comments on commit d9e4910

Please sign in to comment.