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

Nested iteration #150

Open
thejpster opened this issue Oct 12, 2024 · 1 comment
Open

Nested iteration #150

thejpster opened this issue Oct 12, 2024 · 1 comment

Comments

@thejpster
Copy link
Member

You can't open a child directory whilst iterating a directory. We should support that because otherwise you have to cache all the child names and then do an expensive directory walk to find them again.

If we were smart we'd let you trade one directory handle for another and use .. to pop back, so we only have one directory open at once.

@thejpster
Copy link
Member Author

thejpster commented Oct 12, 2024

If we were smart we'd let you trade one directory handle for another

Actually, no, you need a stack because you want to come back to the parent dir and resume at the entry just after the child.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant