Add `Paths::files` and `Paths::dirs`
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 595
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
This issue proposes adding the following methods:
Paths::files(self) -> Files: returns an iterator of only file types.Paths::dirs(self) -> Dirs: returns an iterator of only directory types.
In both cases, symlinks are resolved as either files or dirs and returned as the original paths.
If you approve I can implement this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Paths type and its existing iterator behavior. Check how matched paths and symlinks are classified, then implement the files and dirs iterators so they preserve original paths and verify their behavior with the project's existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100