MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / path_to_string

Function path_to_string

rust/src/files.rs:649–654  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

647}
648
649pub fn path_to_string(path: &Path) -> String {
650 path.to_path_buf()
651 .into_os_string()
652 .into_string()
653 .unwrap_or_default()
654}
655
656pub fn read_bytes_from_file(file_path: &str) -> Result<Vec<u8>, Error> {
657 let file = File::open(file_path)?;

Callers 14

read_cache_pathFunction · 0.85
uncompress_sfxFunction · 0.85
uncompress_dmgFunction · 0.85
uncompress_debFunction · 0.85
download_browserMethod · 0.85
detect_browser_pathMethod · 0.85
is_browserMethod · 0.85

Calls

no outgoing calls

Tested by 1

get_driver_pathFunction · 0.68