Skip to main content

trim_slashes

Function trim_slashes 

Source
pub fn trim_slashes(path: Vec<u8>) -> Vec<u8> ⓘ
Expand description

Strips trailing slashes from a path, keeping a lone /.

§Arguments

  • path - Any path.

§Returns

The same path without trailing slashes.