Permalink
Browse files

Removed usage of fs.existsSync for compatibility with node 0.6 and ch…

…anged formatting as requested
  • Loading branch information...
1 parent 9ec7c3a commit fc7040228281990d967f16558b40d8294e3c8ca8 @MiguelMadero committed Sep 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 templates/Jakefile
View
@@ -115,7 +115,9 @@ namespace('gen', function () {
// Write file
fileDir = path.join('app', dirname);
- if (!fs.existsSync(fileDir)) fs.mkdirSync(fileDir);
+ if (!utils.file.existsSync(fileDir)) {
+ fs.mkdirSync(fileDir);
+ }
filePath = path.join(fileDir, names.filename[options.inflection] + '.js');
fs.writeFileSync(filePath, templ.markup, 'utf8');

0 comments on commit fc70402

Please sign in to comment.