Dev2.InterfaceImplementors.FileSystemQuery.SearchForFileAndFolders C# (CSharp) Method

SearchForFileAndFolders() private method

private SearchForFileAndFolders ( string searchPath, List queryCollection, char directorySeparatorChar ) : List
searchPath string
queryCollection List
directorySeparatorChar char
return List
        List<string> SearchForFileAndFolders(string searchPath, List<string> queryCollection, char directorySeparatorChar)
        {
            if((searchPath ?? string.Empty).Length == 2)
            {
                queryCollection = GetFilesAndFoldersFromDrive(searchPath, queryCollection, directorySeparatorChar);
                queryCollection = GetComputerNamesOnNetwork(searchPath, queryCollection);
            }
            else
            {
                queryCollection = GetAllFilesAndFolders(searchPath, queryCollection, directorySeparatorChar);
            }
            return queryCollection;
        }