snix_store::import

Function path_to_name

Source
pub fn path_to_name(path: &Path) -> Result<&str>
Expand description

Transform a path into its base name and returns an std::io::Error if it is .. or if the basename is not valid unicode.