19 using System.Collections.Generic;
40 if (String.IsNullOrEmpty(path))
return path;
42 if (
System.IO.Directory.Exists(path))
48 return System.IO.Path.GetDirectoryName(path);
64 if (String.IsNullOrEmpty(path))
return path;
66 if (
System.IO.Directory.Exists(path))
72 return System.IO.Path.GetFileName(path);
static string GetDirectoryPart(string path)
Extracts the directory information from path .
static string GetFileNamePart(string path)
Extracts the file name from path .