Function winsafe::path::get_file_name
source · pub fn get_file_name(full_path: &str) -> Option<&str>
Available on crate feature
kernel
only.Expand description
Extracts the file name from a full path, if any.
§Examples
use winsafe::{self as w, prelude::*};
let f = w::path::get_file_name("C:\\Temp\\foo.txt"); // foo.txt