fn new(base: &Path, globs: Vec<(Pattern, GlobIgnoreCase)>) -> BoxResult<PathImpl> {
        let entry = WalkBuilder::new(base).build().next().unwrap()?;
        let metadata = entry.metadata()?;
        Ok(PathImpl {
            entry: entry, metadata: metadata,
            globs: globs
        })
    }
// this is seriously ugly. We need to pre-create this object
// since it must look after the compiled glob patterns.
// But entry needs a valid initialization...
this is seriously ugly. We need to pre-create this object
since it must look after the compiled glob patterns.
But entry needs a valid initialization
this is seriously ugly . We need to pre - create this object since it must look after the compiled glob patterns . But entry needs a valid initialization
fn new(base: &Path, globs: Vec<(Pattern, GlobIgnoreCase)>) -> BoxResult<PathImpl> {
        let entry = WalkBuilder::new(base).build().next().unwrap()?;
        let metadata = entry.metadata()?;
        Ok(PathImpl {
            entry: entry, metadata: metadata,
            globs: globs
        })
    }
fn new ( base : & Path , globs : Vec < ( Pattern , GlobIgnoreCase ) > ) -> BoxResult < PathImpl > { let entry = WalkBuilder :: new ( base ) . build ( ) . next ( ) . unwrap ( ) ? ; let metadata = entry . metadata ( ) ? ; Ok ( PathImpl { entry : entry , metadata : metadata , globs : globs } ) }
this is seriously ugly.
this is seriously ugly .
base
&Path
globs
Vec<(Pattern, GlobIgnoreCase)>
base
&Path
globs
Vec<(Pattern, GlobIgnoreCase)>