Skip to content

Utils.MakeAbsolutePath() breaks UNC paths #27

@mibe

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.

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