private DirectoryPath EnsureTerminalDirectorySeperator(DirectoryPath path) { //System.IO.Path. if (XStrings.EndsWith(path.Value, System.IO.Path.DirectorySeparatorChar)) { return(path); } return(new DirectoryPath() { Value = path.Value + System.IO.Path.DirectorySeparatorChar }); }
public static bool EndsWith(this string source, char value) { return(XStrings.EndsWith(source, value)); }