Kay
Kay15mo ago

WalkSync dosnt get files

Im trying to read all files of a folder with WalkSync from the deno STD libary but it dosnt see the file thats in it and dosnt log anything
for (const entry in walkSync(this.client.root + "\\src\\events")) {
console.log(entry);
}
for (const entry in walkSync(this.client.root + "\\src\\events")) {
console.log(entry);
}
No description
2 Replies
javi
javi15mo ago
you need a for … of loop not a for … in
Kay
KayOP15mo ago
oh. yhea i ran into that a few times before. i dint notice thx