From cceebafacbb2ef22462055a6a0c0685e233e50ed Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Sat, 20 Feb 2021 22:25:44 +0000 Subject: [PATCH] create missing directory --- gulpfile.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ffd71254..ff3b4748 100644 --- a/gulpfile.js +++ b/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`), ]); }