// Token: 0x06001946 RID: 6470 RVA: 0x00054019 File Offset: 0x00052219 internal static bool IsDirectoryTooLong(string fullPath) { if (AppContextSwitches.BlockLongPaths && (AppContextSwitches.UseLegacyPathHandling || !PathInternal.IsExtended(fullPath))) { return(fullPath.Length >= 248); } return(PathInternal.IsPathTooLong(fullPath)); }
[System.Security.SecurityCritical] // auto-generated public static void SetCurrentDirectory(String path) { if (path == null) { throw new ArgumentNullException("value"); } if (path.Length == 0) { throw new ArgumentException(SR.Argument_PathEmpty, "path"); } Contract.EndContractBlock(); if (PathInternal.IsPathTooLong(path)) { throw new PathTooLongException(SR.IO_PathTooLong); } String fulldestDirName = Path.GetFullPath(path); FileSystem.Current.SetCurrentDirectory(fulldestDirName); }