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

seekdir() support #1222

Open
nrath-js opened this issue Nov 20, 2024 · 1 comment
Open

seekdir() support #1222

nrath-js opened this issue Nov 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nrath-js
Copy link

Is it in principle be possible to add seekdir() support, or is there something fundamental that would prevent that?

If it can't be added directly, is there any way I could implement my own seekdir() but continue to use Rustix's Dir structure, or would I have to roll my own version of opendir(), closedir() and readdir() as well?

@sunfishcode
Copy link
Member

In principle, it is probably possible. I'm not aware of anything fundamental blocking it.

If you only need Linux support, you could probably implement your own seekdir using rustix::fs::seek/lseek. If you want portable support, it would need to be added to Dir.

@sunfishcode sunfishcode added the enhancement New feature or request label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants