Function tico::tico [] [src]

pub fn tico(tico: &str) -> String

Shorten a path.

This function keeps only the first letter of each level (/ separated) of the path, except the current one.

Examples

let shortened = tico::tico("/home/.secret/path");
println!("{}", shortened);
// => "/h/.s/path"