From 1c52eca1dd6265703bb64b74c92e83803b663054 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Sun, 2 Jul 2017 10:42:19 -0400 Subject: [PATCH] Exposing Path.GetFileName(path) --- ICD.Common.Utils/Utils/IO/IcdPath.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ICD.Common.Utils/Utils/IO/IcdPath.cs b/ICD.Common.Utils/Utils/IO/IcdPath.cs index 6ec3f9a..c60ff5f 100644 --- a/ICD.Common.Utils/Utils/IO/IcdPath.cs +++ b/ICD.Common.Utils/Utils/IO/IcdPath.cs @@ -9,6 +9,14 @@ namespace ICD.Common.Utils.IO { 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) { if (path == null)