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

Did you find this page helpful?