diff --git a/lib/wrench.js b/lib/wrench.js index d32b854..c546d43 100644 --- a/lib/wrench.js +++ b/lib/wrench.js @@ -135,7 +135,6 @@ exports.rmdirSyncRecursive = function(path, failSilent) { try { files = fs.readdirSync(path); } catch (err) { - console.log('Error "' + err.message + '"\n'); if(failSilent) return; throw new Error(err.message); @@ -152,7 +151,6 @@ exports.rmdirSyncRecursive = function(path, failSilent) { } else if(currFile.isSymbolicLink()) { // Unlink symlinks if (isWindows) { - console.log('Remove file "' + file + '"\n'); fs.chmodSync(file, 666) // Windows needs this unless joyent/node#3006 is resolved.. } @@ -160,7 +158,6 @@ exports.rmdirSyncRecursive = function(path, failSilent) { } else { // Assume it's a file - perhaps a try/catch belongs here? if (isWindows) { - console.log('Remove file "' + file + '"\n'); fs.chmodSync(file, 666) // Windows needs this unless joyent/node#3006 is resolved.. } @@ -168,7 +165,6 @@ exports.rmdirSyncRecursive = function(path, failSilent) { } } - console.log('Remove dir "' + path + '"\n'); /* Now that we know everything in the sub-tree has been deleted, we can delete the main directory. Huzzah for the shopkeep. */ return fs.rmdirSync(path);