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;
}