glob icon indicating copy to clipboard operation
glob copied to clipboard

build a Paths from a Pattern

Open pchampin opened this issue 11 months ago • 0 comments

It seems to be that there is no way to build a Paths from a Pattern, except by passing the underlying string of the Pattern to glob, which means reparsing it.

It would be nice if Patterns had a method (named paths ?) that produced a Paths, such that glob::glob(txt)? would be a shortcut for glob::Pattern::new(txt).paths().

pchampin avatar Dec 09 '24 08:12 pchampin