Function slug

Source
pub(crate) fn slug(path: &Path) -> Result<String>