Skip to content

Commit ef85c82

Browse files
committed
modified save paths for Box
1 parent af9ad9c commit ef85c82

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cloudChecker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ function checkForCloudOptions() {
4141
if (useCloud === true) {
4242
// Box Sync will be rarely used, so check it first
4343
if (fs.existsSync(boxSyncDir)) {
44-
savePath = boxSyncDir
44+
savePath = path.join(boxSyncDir, 'MUSC_POLAR')
4545
console.log("save path is: ", savePath)
4646
return savePath
4747
} else if (fs.existsSync(dropboxCstarDir)) {
48-
savePath = dropboxCstarDir
48+
savePath = path.join(dropboxCstarDir, 'PolarData')
4949
console.log("save path is: ", savePath)
5050
return savePath
5151
} else if (fs.existsSync(dropboxDir)) {
52-
savePath = dropboxDir
52+
savePath = path.join(dropboxDir, 'PolarData')
5353
console.log("save path is: ", savePath)
5454
return savePath
5555
}

core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function ff() {
202202
},
203203
this.datestamp = getDateStamp(),
204204
this.makeOutputFolder = function () {
205-
outpath = path.join(savePath, 'PolarData', "CAM", getSubjID(), getSessID())
205+
outpath = path.join(savePath, "CAM", getSubjID(), getSessID())
206206
console.log(outpath)
207207
if (!fs.existsSync(outpath)) {
208208
mkdirp.sync(outpath)

0 commit comments

Comments
 (0)