You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a file.ts which scans readdir("path", { recursive }) and then map over all result strings to add the "path" infront, bun doesn't complete the map
import{readdir}from"node:fs/promises";exportconstwalks=async(path:string,recursive=true):Promise<string[]>=>{let files =[];constitems=awaitreaddir(path,{withFileTypes: true});if(!items)thrownewError(`No items in ${path}`);for(leti=0,m=items.length;i<m;++i){if(items[i].isDirectory()){if(recursive)files=[ ...files, ...(awaitwalks(`${path}/${items[i].name}`))]}elseif(items[i].isFile()){files.push(`${path}/${items[i].name}`)}}returnfiles;};
I'm on ubuntu 22 via wsl
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.34+5e5e7c60f
What platform is your computer?
5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
When running a file.ts which scans readdir("path", { recursive }) and then map over all result strings to add the "path" infront, bun doesn't complete the map
I'm on ubuntu 22 via wsl
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: