pub fn concat_with_file_separator(s1: &str, s2: &str) -> String
Expand description

Concatenate two strings with a FILE_SEPARATOR.

extern crate slash_formatter;

if cfg!(windows) {
    assert_eq!(r"path\to", slash_formatter::concat_with_file_separator("path", r"to\"));
} else {
    assert_eq!("path/to", slash_formatter::concat_with_file_separator("path", "to/"));
}