Skip to content

Commit

Permalink
Create temp folder if it doesn't exist (#10837)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hudell authored and rodrigok committed May 21, 2018
1 parent 3ffd9e6 commit dd8116d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/methods/requestDataDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Meteor.methods({
}
}

if (!fs.existsSync(tempFolder)) {
fs.mkdirSync(tempFolder);
}

const subFolderName = fullExport ? 'full' : 'partial';
const baseFolder = path.join(tempFolder, userId);
if (!fs.existsSync(baseFolder)) {
Expand Down

0 comments on commit dd8116d

Please sign in to comment.