glob icon indicating copy to clipboard operation
glob copied to clipboard

Add `Paths::files` and `Paths::dirs`

Open vitiral opened this issue 7 years ago • 2 comments

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.

vitiral avatar Jan 29 '18 16:01 vitiral

I`m a bit confuzed on how ergo-fs whoud fix this, does it work on windows ?

NicTanghe avatar Jul 04 '21 21:07 NicTanghe

I... don't remember. I'm not actively working on rust any longer. Feel free to close.

vitiral avatar Jul 05 '21 14:07 vitiral