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
What is the abstract name for Drive, Directory and file?
naming
Since it looks like you are using .NET, if possible I would suggest using the terminology in the System.IO.Path class:Root (Drive letter such as C:\ or UNC such as \server\share)Directory NameFile NameAlso, if possible, I would suggest using the Path, FileInfo, and DirectoryInfo classes when working with file system paths, rather then attempting to do the splitting, combining, and parsing on your own.