Resolve this merge conflict that I somehow 100% totally missed (fixes #63)
This commit is contained in:
parent
99686fbdc2
commit
5c716f9c0d
2 changed files with 24 additions and 42 deletions
|
|
@ -355,13 +355,8 @@ exports.rmdirRecursive = function rmdirRecursive(dir, failSilent, clbk){
|
|||
if(err && typeof failSilent === 'boolean' && !failSilent)
|
||||
return clbk(err);
|
||||
|
||||
<<<<<<< HEAD
|
||||
if(typeof failSilent === 'function')
|
||||
clbk = failSilent;
|
||||
=======
|
||||
if(typeof failSilent === 'function')
|
||||
clbk = failSilent;
|
||||
>>>>>>> 7827a700ff8cb8b742e401e9876e86a63ae0c68a
|
||||
|
||||
(function rmFile(err){
|
||||
if (err) return clbk(err);
|
||||
|
|
@ -394,9 +389,8 @@ exports.copyDirRecursive = function copyDirRecursive(srcDir, newDir, opts, clbk)
|
|||
srcDir = _path.normalize(srcDir);
|
||||
newDir = _path.normalize(newDir);
|
||||
|
||||
fs.stat(newDir, function(err, newDirStat){
|
||||
fs.stat(newDir, function(err, newDirStat) {
|
||||
if(!err) {
|
||||
<<<<<<< HEAD
|
||||
if(typeof opts !== 'undefined' && typeof opts !== 'function' && opts.forceDelete)
|
||||
return exports.rmdirRecursive(newDir, function(err) {
|
||||
copyDirRecursive.apply(this, originalArguments);
|
||||
|
|
@ -407,18 +401,6 @@ exports.copyDirRecursive = function copyDirRecursive(srcDir, newDir, opts, clbk)
|
|||
|
||||
if(typeof opts === 'function')
|
||||
clbk = opts;
|
||||
=======
|
||||
if(typeof opts !== 'undefined' && typeof opts !== 'function' && opts.forceDelete)
|
||||
return exports.rmdirRecursive(newDir, function(err){
|
||||
copyDirRecursive.apply(this, arguments);
|
||||
});
|
||||
else
|
||||
return clbk(new Error('You are trying to delete a directory that already exists. Specify forceDelete in an options object to override this.'));
|
||||
}
|
||||
|
||||
if(typeof opts === 'function')
|
||||
clbk = opts;
|
||||
>>>>>>> 7827a700ff8cb8b742e401e9876e86a63ae0c68a
|
||||
|
||||
fs.stat(srcDir, function(err, srcDirStat){
|
||||
if (err) return clbk(err);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "wrench",
|
||||
"description": "Recursive filesystem (and other) operations that Node *should* have.",
|
||||
"version": "1.5.3",
|
||||
"version": "1.5.4",
|
||||
"author": "Ryan McGrath <ryan@venodesigns.net>",
|
||||
|
||||
"repository": {
|
||||
|
|
|
|||
Reference in a new issue