Comparing version 1.1.0 to 1.1.1
@@ -40,5 +40,6 @@ 'use strict' | ||
readdir(p, { withFileTypes: true }, (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) | ||
// any error other than ENOTDIR or ENOTSUP means it's not readable, | ||
// or doesn't exist. give up. | ||
if (er && er.code !== 'ENOTDIR' && er.code !== 'ENOTSUP') | ||
return cb(er) | ||
if (er || !children.length) return fs[LCHOWN](p, uid, gid, cb) | ||
@@ -76,3 +77,4 @@ | ||
} catch (er) { | ||
if (er && er.code === 'ENOTDIR') return fs[LCHOWNSYNC](p, uid, gid) | ||
if (er && er.code === 'ENOTDIR' && er.code !== 'ENOTSUP') | ||
return fs[LCHOWNSYNC](p, uid, gid) | ||
throw er | ||
@@ -79,0 +81,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "like `chown -R`", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3901
73