mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 21:54:58 +00:00
Exposing Path.GetFileName(path)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user