From 193be9c8cb0bc2546dce57d50d41d2ac2d35f782 Mon Sep 17 00:00:00 2001 From: philc Date: Thu, 7 Nov 2024 18:58:29 +0100 Subject: [PATCH] filter folder only in glob --- apxtri/apxtri.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apxtri/apxtri.js b/apxtri/apxtri.js index ed43b74..c64bd23 100755 --- a/apxtri/apxtri.js +++ b/apxtri/apxtri.js @@ -34,7 +34,7 @@ apxtri.main = async () => { `../adminapi/objects/tribes/idx/tribes_dns.json` ); //check if new tribe was add - glob.sync("../*").forEach(async (t) => { + glob.sync("../*").filter(f => fs.lstatSync(f).isDirectory()).forEach(async (t) => { const tribe = path.basename(t); console.log(tribe); if (!tribesdns[tribe]) {