Skip to main content

runtime_path_has_suffix

Function runtime_path_has_suffix 

Source
pub fn runtime_path_has_suffix(path: &Path, suffix: &str) -> bool
Expand description

Tests whether a path ends with a validated suffix.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::json_commands::runtime_path_has_suffix holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::runtime_path_has_suffix(std::path::Path::new("fixture.json"), todo!());