1
2
3
4
5
6
7
8
pub fn make_path(parent: &str, child: &str) -> String {
    let mut result = parent.to_owned();
    if parent.chars().last().unwrap() != '/' {
        result.push('/');
    }
    result.push_str(child);
    result
}