Skip to content

Commit

Permalink
Add Path EndsWith() (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored Feb 28, 2024
1 parent 6e7adf3 commit f0e4766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JShim/Sun/NIO/FS/WindowsPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public int CompareTo(Path other)
/// <returns></returns>
public bool EndsWith(Path other)
{
throw new NotImplementedException();
return EndsWith(other.ToString());
}

/// <summary>
Expand All @@ -96,7 +96,7 @@ public bool EndsWith(Path other)
/// <returns></returns>
public bool EndsWith(string other)
{
throw new NotImplementedException();
return ToString().EndsWith(other);
}

/// <summary>
Expand Down

0 comments on commit f0e4766

Please sign in to comment.