Skip to content

Commit

Permalink
Treat ENOTSUP like ENOTDIR in readdir
Browse files Browse the repository at this point in the history
Fix #205
  • Loading branch information
isaacs committed Jul 2, 2015
1 parent 507733d commit bf3381e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions glob.js
Expand Up @@ -556,6 +556,7 @@ Glob.prototype._readdirError = function (f, er, cb) {

// handle errors, and cache the information
switch (er.code) {
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
case 'ENOTDIR': // totally normal. means it *does* exist.
this.cache[this._makeAbs(f)] = 'FILE'
break
Expand Down

0 comments on commit bf3381e

Please sign in to comment.