Permalink
Browse files

destFolder auto creation

  • Loading branch information...
1 parent a05dd42 commit c5a19ad1f4978bd10fde705121a3c6785c917668 @corpix corpix committed Jan 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
@@ -52,8 +52,8 @@ try
if(!destValid)
{
- console.error("'"+destFolder + "' is no directory!");
- process.exit(1);
+ console.log("'"+destFolder + "' is no directory! I'll create it for you.");
+ fs.mkdirSync(destFolder);
}
//start recursive function

0 comments on commit c5a19ad

Please sign in to comment.