Comparing version 0.0.2 to 0.0.3
@@ -89,22 +89,24 @@ var fs = require('graceful-fs'); | ||
to = options.toHash[dir]; | ||
fs.stat(to, stack.add(function(err, s) { | ||
if (s && s.isDirectory()) { | ||
if (options.overwrite) { | ||
rimraf(to, stack.add(function() { | ||
mkdirp(to, stat.mode, stack.add(function(err) { | ||
if (err) { | ||
options.errors.push(err); | ||
} | ||
if (to && typeof to === 'string') { | ||
fs.stat(to, stack.add(function(err, s) { | ||
if (s && s.isDirectory()) { | ||
if (options.overwrite) { | ||
rimraf(to, stack.add(function() { | ||
mkdirp(to, stat.mode, stack.add(function(err) { | ||
if (err) { | ||
options.errors.push(err); | ||
} | ||
})); | ||
})); | ||
} | ||
} else { | ||
mkdirp(to, stat.mode, stack.add(function(err) { | ||
if (err) { | ||
options.errors.push(err); | ||
} | ||
})); | ||
} | ||
} else { | ||
mkdirp(to, stat.mode, stack.add(function(err) { | ||
if (err) { | ||
options.errors.push(err); | ||
} | ||
})); | ||
} | ||
})); | ||
})); | ||
} | ||
}); | ||
@@ -111,0 +113,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Dav Glass <davglass@gmail.com>", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "graceful-fs": "~1.1.14", |
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
18480
406