Kay
Kay10mo 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
javi10mo ago
you need a for … of loop not a for … in
Kay
Kay10mo ago
oh. yhea i ran into that a few times before. i dint notice thx