Dev2.Intellisense.Helper.FileSystemQuery.GetAllFilesAndFolders C# (CSharp) Méthode

GetAllFilesAndFolders() public méthode

public GetAllFilesAndFolders ( string searchPath, List queryCollection, char directorySeparatorChar ) : List
searchPath string
queryCollection List
directorySeparatorChar char
Résultat List
        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;
        }