Comparing version 0.2.8 to 0.2.9
@@ -60,2 +60,3 @@ const fs = require('fs') | ||
async loadChildren(options = {}, currentDepth) { | ||
this.children = [] | ||
typeof currentDepth === 'number' ? currentDepth++ : currentDepth = 1 | ||
@@ -79,2 +80,3 @@ const items = await fs.promises.readdir(this.path) | ||
loadChildrenSync(options = {}, currentDepth) { | ||
this.children = [] | ||
typeof currentDepth === 'number' ? currentDepth++ : currentDepth = 1 | ||
@@ -81,0 +83,0 @@ const items = fs.readdirSync(this.path) |
{ | ||
"name": "hotfile", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "Hotfile makes working with folders and files in node-js easy and clear.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
13293
146