@bscotch/pathy
Advanced tools
Comparing version 2.12.0 to 2.12.1
@@ -297,3 +297,12 @@ import { __decorate, __metadata } from "tslib"; | ||
} | ||
const children = await currentPath.listChildren(); | ||
let children = []; | ||
try { | ||
children = await currentPath.listChildren(); | ||
} | ||
catch (err) { | ||
if (options.onError !== 'throw') { | ||
return; | ||
} | ||
throw err; | ||
} | ||
for (const child of children) { | ||
@@ -300,0 +309,0 @@ if (hasReachedLimit()) { |
{ | ||
"name": "@bscotch/pathy", | ||
"version": "2.12.0", | ||
"version": "2.12.1", | ||
"description": "A toolkit for simplifying working with paths and files.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
130694
2045