Comparing version 1.4.2 to 1.4.3
@@ -167,3 +167,2 @@ /* wrench.js | ||
exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) { | ||
if (!opts || !opts.preserve) { | ||
@@ -198,3 +197,3 @@ try { | ||
var fCopyFile = function(srcFile, destFile) { | ||
if (opts.preserveFiles && fs.existsSync(destFile)) return; | ||
if(typeof opts !== 'undefined' && opts.preserveFiles && fs.existsSync(destFile)) return; | ||
@@ -201,0 +200,0 @@ var contents = fs.readFileSync(srcFile); |
{ | ||
"name": "wrench", | ||
"description": "Recursive filesystem (and other) operations that Node *should* have.", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"author": "Ryan McGrath <ryan@venodesigns.net>", | ||
@@ -6,0 +6,0 @@ |
@@ -80,2 +80,11 @@ var testCase = require('nodeunit').testCase; | ||
module.exports = testCase({ | ||
test_copyDirSyncRecursiveWithoutOptions: function(test) { | ||
var dir = path.join(__dirname, 'shown'); | ||
var testdir = path.join(__dirname, 'testdir'); | ||
wrench.copyDirSyncRecursive(dir, testdir); | ||
wrench.rmdirSyncRecursive(testdir); | ||
test.done(); | ||
}, | ||
test_copyDirSyncRecursiveHidden: function(test) { | ||
@@ -82,0 +91,0 @@ var dir = path.join(__dirname, 'shown'); |
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
27878
573