Skip to content

Commit 9680c26

Browse files
committed
Interpret "\\" prefix as an absolute path, for windows network paths
for #163
1 parent 23e60ca commit 9680c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Utilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public static string HashSHA256(byte[] raw)
438438
/// <summary>Smart clean combination of two paths in a way that allows B to be an absolute path.</summary>
439439
public static string CombinePathWithAbsolute(string a, string b)
440440
{
441-
if (b.StartsWith("/") || (b.Length > 2 && b[1] == ':'))
441+
if (b.StartsWith("/") || (b.Length > 2 && b[1] == ':') || b.StartsWith("\\\\"))
442442
{
443443
return b;
444444
}

0 commit comments

Comments
 (0)