glob
glob copied to clipboard
build a Paths from a Pattern
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().