The Utils.MakeAbsolutePath() breaks UNC paths by adding the drive letter from which the invoking .exe is executed.
Example:
MakeAbsolutePath(@"E:\", @"\\server\share\file.ext")
Actual result:
"D:\\server\\share\\file.ext"
Expected result:
"\\\\server\\share\\file.ext"
AFAIK UNC paths are already absolute (except starting with \\.\), so IMHO Utils.IsAbsolutePath() should treat UNC paths starting with \\ and not with \\.\ as absolute paths. MakeAbsolutePath() would then return immediately returning the given path.
The
Utils.MakeAbsolutePath()breaks UNC paths by adding the drive letter from which the invoking .exe is executed.Example:
MakeAbsolutePath(@"E:\", @"\\server\share\file.ext")Actual result:
"D:\\server\\share\\file.ext"Expected result:
"\\\\server\\share\\file.ext"AFAIK UNC paths are already absolute (except starting with
\\.\), so IMHOUtils.IsAbsolutePath()should treat UNC paths starting with\\and not with\\.\as absolute paths.MakeAbsolutePath()would then return immediately returning the given path.