filter folder only in glob
This commit is contained in:
		| @@ -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]) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user