maybe_strip_file_name

Function maybe_strip_file_name 

Source
fn maybe_strip_file_name(path: PathBuf) -> PathBuf
Expand description

Ensure the filename is not too long, as some filesystems have a limit. If the filename is too long, hash part of it and append the hash to the filename. This is a workaround for long crate names generating overly long filenames.