PlaylistsNET icon indicating copy to clipboard operation
PlaylistsNET copied to clipboard

Utils.MakeAbsolutePath() breaks UNC paths

Open mibe opened this issue 1 year ago • 0 comments

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.

mibe avatar Jun 07 '23 22:06 mibe