Carrotware.Web.UI.Controls.FileDataHelper.SpiderFoldersFD C# (CSharp) Method

SpiderFoldersFD() private method

private SpiderFoldersFD ( string sQuery ) : void
sQuery string
return void
        private void SpiderFoldersFD(string sQuery)
        {
            string sPath = MakeFileFolderPath(sQuery);

            string[] subdirs;
            try {
                if (Directory.Exists(sPath)) {
                    subdirs = Directory.GetDirectories(sPath);
                } else {
                    subdirs = null;
                }
            } catch {
                subdirs = null;
            }

            if (subdirs != null) {
                foreach (string theDir in subdirs) {
                    var f = GetFolderInfo(sQuery, theDir);
                    _spiderFD.Add(f);
                    SpiderFoldersFD(f.FolderPath);
                }
            }
        }