filter folder only in glob
This commit is contained in:
parent
4085bb26d7
commit
193be9c8cb
@ -34,7 +34,7 @@ apxtri.main = async () => {
|
|||||||
`../adminapi/objects/tribes/idx/tribes_dns.json`
|
`../adminapi/objects/tribes/idx/tribes_dns.json`
|
||||||
);
|
);
|
||||||
//check if new tribe was add
|
//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);
|
const tribe = path.basename(t);
|
||||||
console.log(tribe);
|
console.log(tribe);
|
||||||
if (!tribesdns[tribe]) {
|
if (!tribesdns[tribe]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user