Skip to content

Commit

Permalink
Fixes system not dealing with network paths correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
azeno committed Feb 2, 2024
1 parent 3b78d08 commit f35dc4e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions VL.Core/src/Types/Path.cs
Expand Up @@ -491,9 +491,7 @@ public Path MakeRelative(Path basePath)
if (this == basePath)
return new Path("");

var baseRoot = basePath.Root[0];
var thisRoot = Root[0];
if (char.IsLetter(baseRoot) && char.IsLetter(thisRoot) && baseRoot != thisRoot)
if (NetPath.GetPathRoot(this) != NetPath.GetPathRoot(basePath))
return this;

var fromPath = (string)basePath;
Expand Down

0 comments on commit f35dc4e

Please sign in to comment.