Skip to main content

release_dir_name

Function release_dir_name 

Source
pub fn release_dir_name(index: usize, tag: &str) -> String
Expand description

A filesystem-safe, collision-free directory name for a release.

Sanitising alone is not enough: tags may contain / (release/1.0), and mapping both v1/0 and v1_0 to v1_0 would let two releases share a directory. The index keeps them distinct.