Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TrimEndingDirectorySeparator() [3/3]

static string System.IO.PathInternal.TrimEndingDirectorySeparator ( string path)
inlinestaticpackage

Definition at line 209 of file PathInternal.cs.

210 {
211 if (!EndsInDirectorySeparator(path) || IsRoot(path.AsSpan()))
212 {
213 return path;
214 }
215 return path.Substring(0, path.Length - 1);
216 }
static bool EndsInDirectorySeparator(string path)
static bool IsRoot(ReadOnlySpan< char > path)

References System.IO.PathInternal.EndsInDirectorySeparator(), and System.IO.PathInternal.IsRoot().