Skip to content

Commit

Permalink
GitHub Issue #92 - ensure the log path exists
Browse files Browse the repository at this point in the history
  • Loading branch information
oakmac committed Mar 21, 2015
1 parent c3fbbcc commit 29e84be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var app = require('app'),
BrowserWindow = require('browser-window'),
dialog = require('dialog'),
fs = require('fs')
fs = require('fs-extra'),
ipc = require('ipc'),
Menu = require('menu'),
path = require('path'),
Expand All @@ -15,6 +15,10 @@ require('crash-reporter').start();
// be closed automatically when the javascript object is GCed.
var mainWindow = null;

// make sure app.getDataPath() exists
// https://github.com/oakmac/cuttle/issues/92
fs.ensureDirSync(app.getDataPath());

//------------------------------------------------------------------------------
// Logging
//------------------------------------------------------------------------------
Expand Down

0 comments on commit 29e84be

Please sign in to comment.