mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 06:03:34 +01:00
Create outdir if it does not exist.
This commit is contained in:
parent
fe7aa6f40d
commit
454fec7a9f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue