Comparing version 0.0.1 to 0.0.2
@@ -0,3 +1,7 @@ | ||
0.0.2 / 2012-08-22 | ||
------------------ | ||
* Fixed bug that made a single string arg act as an array. | ||
0.0.1 / 2012-08-22 | ||
------------------ | ||
* Initial release. |
var fs = require('fs-extra') | ||
, batch = require('batchflow'); | ||
, batch = require('batchflow') | ||
, util = require('util'); | ||
@@ -51,3 +52,6 @@ function BatchDir(dirs) { | ||
if (arguments.length === 1) | ||
return new BatchDir(dirs); | ||
if (util.isArray(arguments[0])) | ||
return new BatchDir(dirs); | ||
else | ||
return new BatchDir([dirs]); | ||
else | ||
@@ -54,0 +58,0 @@ return new BatchDir(Array.prototype.slice.call(arguments, 0)); |
{ | ||
"name": "batchdir", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Batch create directories or delete them.", | ||
@@ -5,0 +5,0 @@ "homepage": [ |
@@ -59,3 +59,15 @@ var testutil = require('testutil') | ||
test('create() - with single string arg', function(done) { | ||
var dir = path.join(TEST_DIR, 'x1'); | ||
F (fs.existsSync(dir)) | ||
batchdir(dir).create (function(err) { | ||
F (err) | ||
T (fs.existsSync(dir)) | ||
done() | ||
}) | ||
}) | ||
test('remove()', function(done) { | ||
@@ -62,0 +74,0 @@ var dirs = [ |
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
7581
126