Create outdir if it does not exist.

This commit is contained in:
SamTV12345 2024-07-24 20:04:03 +02:00
parent fe7aa6f40d
commit 454fec7a9f

View file

@ -278,6 +278,10 @@ exports.expressCreateServer = async (hookName: string, args: any, cb: Function)
const outdir = path.join(settings.root, 'var','js') 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 fileNamePad: string
let fileNameTimeSlider: string let fileNameTimeSlider: string