We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29522e7 commit c64ec58Copy full SHA for c64ec58
lib/index.js
@@ -312,7 +312,7 @@ FSWatcher.prototype._getWatchedDir = function(directory) {
312
//
313
// Returns boolean
314
FSWatcher.prototype._hasReadPermissions = function(stats) {
315
- return Boolean(4 & parseInt((stats.mode & 0x1ff).toString(8)[0], 10));
+ return Boolean(4 & parseInt(((stats && stats.mode) & 0x1ff).toString(8)[0], 10));
316
};
317
318
// Private method: Handles emitting unlink events for
0 commit comments