Skip to main content

collect_matching_files

Function collect_matching_files 

Source
pub fn collect_matching_files(
    root: &Path,
    suffix: &str,
) -> Result<Vec<PathBuf>, &'static str>
Expand description

Collects regular files below a bounded root that match a suffix.

§Parameters

§Returns

Returns the successful value produced by crate::runtime::runtime_stack::collect_matching_files or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::runtime_stack::collect_matching_files cannot complete successfully.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::runtime_stack::collect_matching_files.

§Examples

ⓘ
let _result = pharos_native::runtime::runtime_stack::collect_matching_files(std::path::Path::new("."), todo!());