create missing directory

merge-requests/218/head
Thomas Lynch 3 years ago
parent 42fb6d3b52
commit cceebafacb
  1. 11
      gulpfile.js

@ -146,15 +146,18 @@ async function wipe() {
await Mongo.client.close();
//delete all the static files
return Promise.all([
await Promise.all([
del([ 'static/file/*' ]),
del([ 'static/captcha/*' ]),
del([ 'static/html/*' ]),
del([ 'static/json/*' ]),
del([ 'static/banner/*' ]),
del([ 'static/captcha/*' ]),
del([ 'static/file/*' ]),
del([ 'static/css/*' ]),
]);
return Promise.all([
fs.ensureDir(`${uploadDirectory}/captcha`),
fs.ensureDir(`${uploadDirectory}/file/thumb`),
]);
}

Loading…
Cancel
Save