Skip to content

Utils.MakeAbsolutePath() breaks UNC paths #27

Description

@mibe

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions