From 8876a133b7cddde083fea9bbdf8dc49e2daea0a9 Mon Sep 17 00:00:00 2001 From: Taylor Hanayik Date: Fri, 11 Aug 2017 12:40:20 -0400 Subject: [PATCH] update box saving path --- cloudChecker.js | 6 +++--- core.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloudChecker.js b/cloudChecker.js index 6de2c36..a182aae 100644 --- a/cloudChecker.js +++ b/cloudChecker.js @@ -41,15 +41,15 @@ function checkForCloudOptions() { if (useCloud === true) { // Box Sync will be rarely used, so check it first if (fs.existsSync(boxSyncDir)) { - savePath = boxSyncDir + savePath = path.join(boxSyncDir, 'MUSC_POLAR') console.log("save path is: ", savePath) return savePath } else if (fs.existsSync(dropboxCstarDir)) { - savePath = dropboxCstarDir + savePath = path.join(dropboxCstarDir, 'PolarData') console.log("save path is: ", savePath) return savePath } else if (fs.existsSync(dropboxDir)) { - savePath = dropboxDir + savePath = path.join(dropboxDir, 'PolarData') console.log("save path is: ", savePath) return savePath } diff --git a/core.js b/core.js index 4b4c7ac..509f83a 100644 --- a/core.js +++ b/core.js @@ -182,7 +182,7 @@ function ff() { }, this.datestamp = getDateStamp(), this.makeOutputFolder = function () { - outpath = path.join(savePath, 'PolarData', app.getName(), getSubjID(), getSessID()) + outpath = path.join(savePath, app.getName(), getSubjID(), getSessID()) console.log(outpath) if (!fs.existsSync(outpath)) { mkdirp.sync(outpath)