BurntSushi / walkdir

Rust library for walking directories recursively.
The Unlicense
1.3k stars 109 forks source link

workspace member as a root #200

Closed akamenskiy closed 4 months ago

akamenskiy commented 4 months ago

Is there any way I could use a workspace member directory as the root directory? I have this kind structure: project/ crates/ crate/ directory_to_walk src/ lib.rs with WalkDir::new(Path)

Is there any way to set "directory_to_walk/" as a valid path?

BurntSushi commented 4 months ago

What? walkdir has no concept of "workspaces."

akamenskiy commented 4 months ago

Yes. But cargo does. So I'm wondering if walkdir understands this concept.

BurntSushi commented 4 months ago

No... You just give it a directory and it will do recursive traversal over it. I do not understand why you want a low level library like walkdir to be aware of Cargo workspaces.

akamenskiy commented 4 months ago

I've just asked. No offence. I'm newby, so I could not understand all concepts