What is the abstract name for Drive, Directory and file?
        Posted  
        
            by 
                Omkar panhalkar
            
        on Programmers
        
        See other posts from Programmers
        
            or by Omkar panhalkar
        
        
        
        Published on 2012-04-03T14:44:37Z
        Indexed on 
            2012/04/03
            17:41 UTC
        
        
        Read the original article
        Hit count: 253
        
naming
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
© Programmers or respective owner