From da8d811c6876c052655c940222677ceaa605cf45 Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 25 Feb 2025 14:45:46 +0100 Subject: [PATCH] fix copy tracker empty --- apxtri/models/Wwws.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apxtri/models/Wwws.js b/apxtri/models/Wwws.js index 329cbe6..41c891d 100644 --- a/apxtri/models/Wwws.js +++ b/apxtri/models/Wwws.js @@ -51,9 +51,11 @@ Wwws.getwco = (wconame, ctx) => { wconame == "tracker" && !fs.pathExistsSync(`../${ctx.tribe}/objects/wwws/cdn/log`) ) { + fs.mkdirSync(`../${ctx.tribe}/objects/wwws/cdn/`, { recursive: true }); fs.cpSync( `../adminapi/objects/wwws/cdn/log`, - `../${ctx.tribe}/objects/wwws/cdn/` + `../${ctx.tribe}/objects/wwws/cdn/`, + { recursive: true } ); } const webconf = `../${ctx.tribe}/objects/wwws/itm/${ctx.xapp}.json`;