mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 20:17:15 +00:00
Exposing Path.GetFileName(path)
This commit is contained in:
parent
7c10a3d41e
commit
1c52eca1dd
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue