Skip to content

Commit

Permalink
update Box save path
Browse files Browse the repository at this point in the history
  • Loading branch information
hanayik committed Aug 11, 2017
1 parent 0198b37 commit f78b2bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cloudChecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function ff() {
},
this.datestamp = getDateStamp(),
this.makeOutputFolder = function () {
outpath = path.join(savePath, 'PolarData', this.getAssessmentType(), getSubjID(), getSessID())
outpath = path.join(savePath, this.getAssessmentType(), getSubjID(), getSessID())
if (!fs.existsSync(outpath)) {
mkdirp.sync(outpath)
}
Expand Down

0 comments on commit f78b2bd

Please sign in to comment.