@nodelib/fs.walk
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -79,3 +79,3 @@ "use strict"; | ||
const fullpath = entry.path; | ||
if (base) { | ||
if (base !== undefined) { | ||
entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); | ||
@@ -82,0 +82,0 @@ } |
@@ -19,4 +19,7 @@ "use strict"; | ||
function joinPathSegments(a, b, separator) { | ||
if (a === '') { | ||
return b; | ||
} | ||
return a + separator + b; | ||
} | ||
exports.joinPathSegments = joinPathSegments; |
@@ -45,3 +45,3 @@ "use strict"; | ||
const fullpath = entry.path; | ||
if (base) { | ||
if (base !== undefined) { | ||
entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); | ||
@@ -48,0 +48,0 @@ } |
{ | ||
"name": "@nodelib/fs.walk", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A library for efficiently walking a directory recursively", | ||
@@ -34,3 +34,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "e23fc3908c45a4a71f0cc844cbf5e4fbdd6c71aa" | ||
"gitHead": "da1b87f3157fdaccf849add548beb92f63fcf137" | ||
} |
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
25024
475