[−][src]Function slash_formatter::concat_with_file_separator
pub fn concat_with_file_separator<S1: AsRef<str>, S2: AsRef<str>>(
s1: S1,
s2: S2
) -> String
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/")); }