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

◆ IsDevice() [3/3]

static bool System.IO.PathInternal.IsDevice ( string path)
inlinestaticpackage

Definition at line 82 of file PathInternal.cs.

83 {
84 if (!IsExtended(path))
85 {
86 if (path.Length >= 4 && IsDirectorySeparator(path[0]) && IsDirectorySeparator(path[1]) && (path[2] == '.' || path[2] == '?'))
87 {
88 return IsDirectorySeparator(path[3]);
89 }
90 return false;
91 }
92 return true;
93 }
static bool IsDirectorySeparator(char c)
static bool IsExtended(ReadOnlySpan< char > path)

References System.IO.PathInternal.IsDirectorySeparator(), and System.IO.PathInternal.IsExtended().