public List<string> GetAllFilesAndFolders(string searchPath, List<string> queryCollection, char directorySeparatorChar)
{
bool bQueryUncShares = false;
string sFileServer = string.Empty;
if(String.IsNullOrEmpty(searchPath)) return new List<string>();
if(searchPath.Length > 3)
{
bQueryUncShares = GetServerNameFromInput(searchPath, ref queryCollection, ref sFileServer);
}
if(bQueryUncShares)
{
GetSharesInformationFromSpecifiedServer(sFileServer, queryCollection);
}
else if(queryCollection.Count==0)
{
queryCollection = GetFilesAndFoldersIncludingNetwork(searchPath, queryCollection, directorySeparatorChar);
}
return queryCollection;
}