directory-tree
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -52,2 +52,4 @@ 'use strict'; | ||
function directoryTree (path, options, onEachFile, onEachDirectory, currentDepth = 0) { | ||
options = options || {}; | ||
if (options.depth !== undefined && options.attributes.indexOf('size') !== -1) { | ||
@@ -58,3 +60,2 @@ throw new Error('usage of size attribute with depth option is prohibited'); | ||
const name = PATH.basename(path); | ||
options = options || {}; | ||
path = options.normalizePath ? normalizePath(path) : path; | ||
@@ -61,0 +62,0 @@ const item = { path, name }; |
{ | ||
"name": "directory-tree", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Convert a directory tree to a JS object.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
17573