BurntSushi / walkdir

Rust library for walking directories recursively.
The Unlicense
1.21k stars 106 forks source link

Implement `AsRef<Path>` for `DirEntry` #146

Closed TonalidadeHidrica closed 3 years ago

TonalidadeHidrica commented 3 years ago

I haven't use this library much yet, but I have an idea that it would be useful if DirEntry implements AsRef<Path>. Does it sound good?

BurntSushi commented 3 years ago

I don't think so, no. A DirEntry is more than a path, so it seems inappropriate to impl AsRef.