pub fn trim_slashes(path: Vec<u8>) -> Vec<u8> ⓘ
Strips trailing slashes from a path, keeping a lone /.
/
path
The same path without trailing slashes.