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

Add a "find" command to walk the dir tree #43

Open
harendra-kumar opened this issue Jun 12, 2022 · 0 comments
Open

Add a "find" command to walk the dir tree #43

harendra-kumar opened this issue Jun 12, 2022 · 0 comments

Comments

@harendra-kumar
Copy link
Member

harendra-kumar commented Jun 12, 2022

There are two possible ways to traverse - DFS and BFS. A DFS implementation is in:

https://github.com/composewell/streamly-examples/blob/master/examples/ListDir.hs

  • Add detection of cycles due to symbolic links.
  • Add a BFS alternative.
  • FileTest predicates can be used to filter the results
  • Concurrent traversal

Commands depending on recursive traversal of directory trees (e.g. ls -r and cp -r) can be implemented in terms of find.

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