Пример #1
0
        protected List <string> GetDirectoriesNames(string path)
        {
            //Process directories
            string[] sourceSubdirectoryEntries = m_IStorage.GetDirectories(path);

            var sourceSubdirectoryEntriesList = new List <string>();

            foreach (var entry in sourceSubdirectoryEntries)
            {
                string         newPath = m_IStorage.Combine(path, entry);
                FileAttributes attr    = m_IStorage.GetFileAttributes(newPath);
                if (((attr & FileAttributes.System) != FileAttributes.System) &&
                    ((attr & FileAttributes.Hidden) != FileAttributes.Hidden))
                {
                    sourceSubdirectoryEntriesList.Add(m_IStorage.GetFileName(entry));
                }
            }

            return(sourceSubdirectoryEntriesList);
        }