Skip to content

Commit

Permalink
Create outdir if it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Jul 24, 2024
1 parent fe7aa6f commit 454fec7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node/hooks/express/specialpages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ exports.expressCreateServer = async (hookName: string, args: any, cb: Function)


const outdir = path.join(settings.root, 'var','js')
// Create the outdir if it doesn't exist
if (!fs.existsSync(outdir)) {
fs.mkdirSync(outdir);
}

let fileNamePad: string
let fileNameTimeSlider: string
Expand Down

0 comments on commit 454fec7

Please sign in to comment.