What is the abstract name for Drive, Directory and file?
- by Omkar panhalkar
I want to give nice name to my function while returns drive, directory and file. Can you please suggest a good abstract name for this trio?
This is the function.
static IEnumerable<string> GetDriveDirectoriesAndFile(string path)
{
if (path.Contains('/'))
{
path = path.Replace('/', '\\');
}
if (path.Contains('\\'))
{
return path.Split('\\');
}
return null;
}
Thanks,
Omkar