[−][src]Function slash_formatter::add_end_file_separator_owned
pub fn add_end_file_separator_owned<S: Into<String>>(s: S) -> String
Add an ending FILE_SEPARATOR into a string.
extern crate slash_formatter; let s = String::from("path"); let s = slash_formatter::add_end_file_separator_owned(s); if cfg!(windows) { assert_eq!(r"path\", s); } else { assert_eq!("path/", s); }