You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs.readdir(p, function (er, children) {
// any error other than ENOTDIR means it's not readable, or
// doesn't exist. give up.
if (er && er.code !== "ENOTDIR") return cb(er)
When readdir()'ing a local file, we get ENOTDIR (good). Same thing on a network path gives ENOTSUP (weird).
We need to support ENOTSUP as well. Simple fix should be:
fs.readdir(p, function (er, children) {
// any error other than ENOTDIR/ENOTSUP means it's not readable, or
// doesn't exist. give up.
if (er && er.code !== "ENOTDIR" && er.code !== "ENOTSUP") return cb(er)
I'll make a small PR for this.
The text was updated successfully, but these errors were encountered:
Same problem as this:
isaacs/node-glob#205
But in chrownr (https://github.com/isaacs/chownr/blob/master/chownr.js#L11), we have:
When readdir()'ing a local file, we get ENOTDIR (good). Same thing on a network path gives ENOTSUP (weird).
We need to support ENOTSUP as well. Simple fix should be:
I'll make a small PR for this.
The text was updated successfully, but these errors were encountered: