Skip to content

Commit

Permalink
Add Path ToUri() (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored Feb 28, 2024
1 parent 17648dc commit 361ef01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion JShim/Sun/NIO/FS/WindowsPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ public Path ToRealPath(params LinkOption[] options)

public Uri ToURI()
{
throw new NotImplementedException();
UriBuilder ub = new UriBuilder("file", "localhost", -1, ToString());
return ub.Uri;
}

public override string ToString()
Expand Down

0 comments on commit 361ef01

Please sign in to comment.