Skip to content
New issue

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

path property is missing in returned object for fs.promises.opendir #4995

Closed
vladfrangu opened this issue Sep 11, 2023 · 1 comment · Fixed by #7292
Closed

path property is missing in returned object for fs.promises.opendir #4995

vladfrangu opened this issue Sep 11, 2023 · 1 comment · Fixed by #7292
Labels
bug Something isn't working

Comments

@vladfrangu
Copy link

What version of Bun is running?

1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983

What platform is your computer?

Darwin 23.0.0 arm64 arm

What steps can reproduce the bug?

import { opendir } from 'fs/promises'

const dir = await opendir('.');

console.log(dir.path);

What is the expected behavior?

It should log the loaded path for the directory (nodejs seems to just point to whatever is passed into opendir)

What do you see instead?

undefined

Additional information

No response

@vladfrangu vladfrangu added the bug Something isn't working label Sep 11, 2023
@anru
Copy link

anru commented Nov 11, 2023

Bug is actual for bun v1.0.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants