24 return Path.TrimEndingDirectorySeparator(path);
35 return path[path.Length - 1] != Path.DirectorySeparatorChar ? path + Path.DirectorySeparatorChar : path;
Various extension methods for working with paths.
static string EnsureEndingDirectorySeparator(string path)
Ensures the given path ends with a directory separator.
static readonly char[] DirectorySeparatorChars
static string TrimEndingDirectorySeparator(string path)
Trims any ending directory separator characters are removed from the path.