Comparing version 1.0.2 to 1.0.3
@@ -16,3 +16,7 @@ 'use strict'; | ||
function (files, cb) { | ||
trash(files.map(function (file) { return pathJoin(dir, file); }), cb); | ||
if (files.length === 0) { | ||
cb(); | ||
} else { | ||
trash(files.map(function (file) { return pathJoin(dir, file); }), cb); | ||
} | ||
} | ||
@@ -19,0 +23,0 @@ ], callback); |
{ | ||
"name": "clean-dir", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Command line util to safely clean a directory", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/ruyadorno/clean-dir", |
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
2996
33