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