Skip to content

Enhancement: Customizable file system oterator implementation #143

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

Closed
wants to merge 2 commits into from

Conversation

arilou
Copy link

@arilou arilou commented Apr 7, 2024

This patch introduces the capability to implement custom iterators for file system traversal. This flexibility is particularly beneficial for applications requiring specialized handling of file systems, such as iterating over archive formats (e.g., tar, zip) or employing alternative traversal logic. For instance, this feature addresses community requests for functionality to avoid following symbolic links during file system operations.

With this update, developers can tailor file system iteration to better meet their specific application needs.

@tgross35
Copy link
Contributor

Thank you for the interest! However, I am going to close this because it seems beyond the scope of what glob wants to do (it's pretty much a Rust version of Python's glob, or glob(3)). Aside from that, there isn't any demonstration of how to use this in the PR, or tests.

You may be interested in https://docs.rs/wax/latest/wax/ which provides much more control over traversal.

@tgross35 tgross35 closed this Aug 11, 2025
@arilou
Copy link
Author

arilou commented Aug 11, 2025

Hi thank you for the reply, I have no issue adding tests and example if that will help perhaps accepting this PR.

Wax does seems to be nice but it does not fit what I was trying to achieve here.

Are you still open for this type of change?

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

Successfully merging this pull request may close these issues.

2 participants