@bscotch/utility
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -78,3 +78,7 @@ "use strict"; | ||
function removeEmptyDirsSync(startDir) { | ||
const folders = listFoldersSync(startDir, true); | ||
const folders = [ | ||
startDir, | ||
...listFoldersSync(startDir, true) | ||
]; | ||
folders.reverse(); | ||
for (const folder of folders) { | ||
@@ -81,0 +85,0 @@ try { |
@@ -0,1 +1,10 @@ | ||
## [0.5.1](https://github.com/bscotch/node-util/compare/v0.5.0...v0.5.1) (2020-10-15) | ||
### Bug Fixes | ||
* Recursively removing empty directories now works. Previously it would remove *some* directories and never the root one. ([c3daaf0](https://github.com/bscotch/node-util/commit/c3daaf06330e0d9a7d2c1f61ad5adcbee846bdf0)) | ||
# [0.5.0](https://github.com/bscotch/node-util/compare/v0.4.0...v0.5.0) (2020-10-12) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "@bscotch/utility", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Bscotch Utilities: Methods for common Node.js needs.", | ||
@@ -42,2 +42,3 @@ "engines": { | ||
"@types/chai": "^4.2.12", | ||
"@types/fs-extra": "^9.0.2", | ||
"@types/mocha": "^8.0.3", | ||
@@ -50,2 +51,3 @@ "@types/node": "^14.6.4", | ||
"eslint": "^7.8.1", | ||
"fs-extra": "^9.0.1", | ||
"mocha": "^8.1.3", | ||
@@ -52,0 +54,0 @@ "source-map-support": "^0.5.19", |
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
25090
278
14