pub fn collect_ext_files( path: &str, recursive: bool, exts: &[&str], ) -> Result<(Vec<String>, bool)>
Collects files with specific extensions from the specified path, either as a directory or a single file.