We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.2.0
Linux 6.12.10-amd64 x86_64 unknown
This function no longer works in bun 1.2:
export async function isDirectoryEmpty(directory) { const dirHandle = await fsp.opendir(directory) const iter = dirHandle[Symbol.asyncIterator]() let next = await iter.next() while (!next.done) { await dirHandle.close() return false } return true }
Failing with error message:
TypeError: fs.closedirSync is not a function. (In 'fs.closedirSync(this.#handle)', 'fs.closedirSync' is undefined) at close (node:fs:423:27)
The function should not fail
The method dirHandle.close() is invoking internally closedirSync() but it cannot find it
dirHandle.close()
closedirSync()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.2.0
What platform is your computer?
Linux 6.12.10-amd64 x86_64 unknown
What steps can reproduce the bug?
This function no longer works in bun 1.2:
Failing with error message:
What is the expected behavior?
The function should not fail
What do you see instead?
Additional information
The method
dirHandle.close()
is invoking internallyclosedirSync()
but it cannot find itThe text was updated successfully, but these errors were encountered: