From 445a2836f4c405d63e8d4d294098a3e1706aff97 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Mon, 11 Apr 2011 01:28:16 +0900 Subject: [PATCH] Resolves issue #2, thanks to a heads up from jakobmattsson that these lines never got removed --- lib/wrench.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wrench.js b/lib/wrench.js index 815b11b..3ebe564 100644 --- a/lib/wrench.js +++ b/lib/wrench.js @@ -80,8 +80,8 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation) { fs.symlinkSync(symlinkFull, newDirLocation + "/" + files[i]); } else { /* At this point, we've hit a file actually worth copying... so copy it on over. */ - var contents = fs.readFileSync(sourceDir + "/" + files[i], encoding="utf8"); - fs.writeFileSync(newDirLocation + "/" + files[i], contents, encoding="utf8"); + var contents = fs.readFileSync(sourceDir + "/" + files[i]); + fs.writeFileSync(newDirLocation + "/" + files[i], contents); } } }; diff --git a/package.json b/package.json index 6936b42..5aa9708 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "wrench", "description": "Recursive filesystem operations that Node *should* have.", - "version": "0.1.0", + "version": "1.0.0", "author": "Ryan McGrath ", "repository": {