Exposing Path.GetFileName(path)

This commit is contained in:
Chris Cameron
2017-07-02 10:42:19 -04:00
parent 7c10a3d41e
commit 1c52eca1dd

View File

@@ -9,6 +9,14 @@ namespace ICD.Common.Utils.IO
{ {
public static class IcdPath public static class IcdPath
{ {
public static string GetFileName(string path)
{
if (path == null)
throw new ArgumentNullException("path");
return Path.GetFileName(path);
}
public static string GetFileNameWithoutExtension(string path) public static string GetFileNameWithoutExtension(string path)
{ {
if (path == null) if (path == null)