filter folder only in glob

This commit is contained in:
philc 2024-11-07 18:58:29 +01:00
parent 4085bb26d7
commit 193be9c8cb

View File

@ -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]) {