From 6c32d1ab4a89105cfaae221eeac354efefdbe72c Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sat, 4 Nov 2017 00:28:41 +0100 Subject: Clean recipe temp dir on start --- src/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index a72d76f3a..a3aa14732 100644 --- a/src/index.js +++ b/src/index.js @@ -18,6 +18,7 @@ let willQuitApp = false; // Ensure that the recipe directory exists fs.ensureDir(path.join(app.getPath('userData'), 'recipes')); +fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); // Set App ID for Windows if (isWindows) { -- cgit v1.2.3-70-g09d2