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

◆ EnsureExtendedPrefix() [3/3]

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

Definition at line 291 of file PathInternal.cs.

292 {
293 if (IsPartiallyQualified(path.AsSpan()) || IsDevice(path.AsSpan()))
294 {
295 return path;
296 }
297 if (path.StartsWith("\\\\", StringComparison.OrdinalIgnoreCase))
298 {
299 return path.Insert(2, "?\\UNC\\");
300 }
301 return "\\\\?\\" + path;
302 }
static bool IsDevice(ReadOnlySpan< char > path)
static bool IsPartiallyQualified(ReadOnlySpan< char > path)
static StringComparison StringComparison

References System.IO.PathInternal.IsDevice(), and System.IO.PathInternal.IsPartiallyQualified().