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