Remove console.log statements to clean up the code.

This commit is contained in:
seanmwalker 2014-01-17 01:33:47 -06:00
parent df61c7017f
commit 99106ac738

View file

@ -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);