52 references to PathInternal
mscorlib (52)
system\appdomain.cs (1)
4021
maxPathLength:
PathInternal
.MaxShortPath,
system\AppDomainSetup.cs (1)
440
pathRoot = pathRoot.Substring(0, System.IO.
PathInternal
.GetRootLength(pathRoot));
system\io\__error.cs (1)
89
if (
PathInternal
.IsPartiallyQualified(path) && !isInvalidPath)
system\io\directory.cs (8)
326
if (
PathInternal
.IsDirectoryTooLong(name))
1108
StringBuilder sb = StringBuilderCache.Acquire(
PathInternal
.MaxShortPath + 1);
1118
if (r == 0 || r >=
PathInternal
.MaxShortPath)
1121
if (r >=
PathInternal
.MaxShortPath)
1140
using (StringBuffer buffer = new StringBuffer(
PathInternal
.MaxShortPath))
1180
if (
PathInternal
.IsPathTooLong(path))
1234
if (
PathInternal
.IsDirectoryTooLong(sourcePath))
1240
if (
PathInternal
.IsDirectoryTooLong(sourcePath))
system\io\filestream.cs (3)
712
?
PathInternal
.MaxLongPath
713
: AppContextSwitches.BlockLongPaths ?
PathInternal
.MaxShortPath :
PathInternal
.MaxLongPath;
system\io\longpath.cs (3)
565
r = Win32Native.CreateDirectory(
PathInternal
.EnsureExtendedPrefix(name), secAttrs);
652
String tempSourceDirName =
PathInternal
.EnsureExtendedPrefix(sourceDirName);
653
String tempDestDirName =
PathInternal
.EnsureExtendedPrefix(destDirName);
system\io\path.cs (27)
83
private static readonly char[] RealInvalidPathChars =
PathInternal
.InvalidPathChars;
95
internal static readonly int MaxPath =
PathInternal
.MaxShortPath;
96
private static readonly int MaxDirectoryLength =
PathInternal
.MaxComponentLength;
99
internal const int MAX_PATH =
PathInternal
.MaxShortPath; // From WinDef.h
100
internal const int MAX_DIRECTORY_PATH =
PathInternal
.MaxShortDirectoryPath; // cannot create directories greater than 248 characters
254
return
PathInternal
.GetRootLength(path);
376
return NormalizePath(path, fullCheck, AppContextSwitches.BlockLongPaths ?
PathInternal
.MaxShortPath :
PathInternal
.MaxLongPath);
405
if (
PathInternal
.IsExtended(path))
439
string normalized =
PathInternal
.NormalizeDirectorySeparators(path);
441
if (
PathInternal
.IsPathTooLong(normalized) ||
PathInternal
.AreSegmentsTooLong(normalized))
503
return LongPathHelper.Normalize(path, (uint)maxPathLength, checkInvalidCharacters: !
PathInternal
.IsDevice(path), expandShortPaths: expandShortPaths);
521
if (
PathInternal
.AnyPathHasIllegalCharacters(path))
929
internal const int MaxLongPath =
PathInternal
.MaxLongPath;
931
private const string LongPathPrefix =
PathInternal
.ExtendedPathPrefix;
932
private const string UNCPathPrefix =
PathInternal
.UncPathPrefix;
933
private const string UNCLongPathPrefixToInsert =
PathInternal
.UncExtendedPrefixToInsert;
934
private const string UNCLongPathPrefix =
PathInternal
.UncExtendedPathPrefix;
941
return
PathInternal
.IsExtended(path);
958
return
PathInternal
.EnsureExtendedPrefix(path);
976
return
PathInternal
.RemoveExtendedPrefix(path);
984
if (!
PathInternal
.StartsWithOrdinal(pathSB, LongPathPrefix))
988
if (
PathInternal
.StartsWithOrdinal(pathSB, UNCLongPathPrefix, ignoreCase: true))
995
return
PathInternal
.RemoveExtendedPrefix(pathSB);
1080
return
PathInternal
.IsPartiallyQualified(path);
1393
if (
PathInternal
.HasIllegalCharacters(path, checkAdditional))
system\security\permissions\fileiopermission.cs (5)
588
int startIndex = !skipPrefix ? 0 :
PathInternal
.IsDevice(path) ?
PathInternal
.DevicePrefixLength : 0;
1099
if (AppContextSwitches.UseLegacyPathHandling || !
PathInternal
.IsDevice(fullPath))
1103
if (
PathInternal
.HasWildCardCharacters(fullPath))
1108
if (
PathInternal
.HasInvalidVolumeSeparator(fullPath))
system\security\util\stringexpressionset.cs (1)
244
if (
PathInternal
.IsPartiallyQualified(temp))
system\security\util\urlstring.cs (2)
461
if (path.Length >= (AppContextSwitches.BlockLongPaths ?
PathInternal
.MaxShortPath :
PathInternal
.MaxLongPath))