From f0e4766279bd4d48784c6e47bff0259df1404a2d Mon Sep 17 00:00:00 2001 From: gyk <147011991+gyk4j@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:36:31 +0800 Subject: [PATCH] Add Path EndsWith() (#207) --- JShim/Sun/NIO/FS/WindowsPath.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JShim/Sun/NIO/FS/WindowsPath.cs b/JShim/Sun/NIO/FS/WindowsPath.cs index cc61a42..47e7b02 100644 --- a/JShim/Sun/NIO/FS/WindowsPath.cs +++ b/JShim/Sun/NIO/FS/WindowsPath.cs @@ -84,7 +84,7 @@ public int CompareTo(Path other) /// public bool EndsWith(Path other) { - throw new NotImplementedException(); + return EndsWith(other.ToString()); } /// @@ -96,7 +96,7 @@ public bool EndsWith(Path other) /// public bool EndsWith(string other) { - throw new NotImplementedException(); + return ToString().EndsWith(other); } ///