//!
//! Operate over files.
//!
use std::path::{ Path, PathBuf };
///
/// Find paths.
///
/* qqq : dubious prototype */
pub fn find
( base_dir : P, patterns : &[ S ] ) -> Vec
where
P: AsRef,
S: AsRef,
{
let paths = globwalk::GlobWalkerBuilder::from_patterns( base_dir, patterns )
.follow_links( false )
.build().unwrap()
.into_iter()
.filter_map( Result::ok )
.map( | s | s.path().to_path_buf() )
.collect::>();
paths
}