Example #1
0
        // Token: 0x06001ADF RID: 6879 RVA: 0x0005A51C File Offset: 0x0005871C
        internal static string InternalCombine(string path1, string path2)
        {
            bool   flag;
            string path3 = LongPath.TryRemoveLongPathPrefix(path1, out flag);
            string text  = Path.InternalCombine(path3, path2);

            if (flag)
            {
                text = Path.AddLongPathPrefix(text);
            }
            return(text);
        }
Example #2
0
        internal static string GetPathRoot(string path)
        {
            if (path == null)
            {
                return((string)null);
            }
            bool   removed;
            string path1 = LongPath.NormalizePath(LongPath.TryRemoveLongPathPrefix(path, out removed), false);
            string path2 = path.Substring(0, LongPath.GetRootLength(path1));

            if (removed)
            {
                path2 = Path.AddLongPathPrefix(path2);
            }
            return(path2);
        }
Example #3
0
        internal static string GetPathRoot(string path)
        {
            if (path == null)
            {
                return(null);
            }
            bool   flag;
            string path2 = LongPath.TryRemoveLongPathPrefix(path, out flag);

            path2 = LongPath.NormalizePath(path2, false);
            string text = path.Substring(0, LongPath.GetRootLength(path2));

            if (flag)
            {
                text = Path.AddLongPathPrefix(text);
            }
            return(text);
        }