CAClientCommon.DirFinder.getLogDirs C# (CSharp) Метод

getLogDirs() защищенный статический Метод

protected static getLogDirs ( string path ) : List
path string
Результат List
        protected static List<string> getLogDirs(string path)
        {
            var logDirs = new List<string>();

            if (! Directory.Exists(path))
                throw new DirectoryNotFoundException("Base directory does not exist: " + path);

            if (!Directory.Exists(path + releaseDir))
                throw new DirectoryNotFoundException("Could not find release directory: " + path + releaseDir);

            foreach (string verDir in Directory.EnumerateDirectories(path + releaseDir))
            {
                string logDir = verDir + logSubDir;
                if (Directory.Exists(logDir))
                    logDirs.Add(logDir);
                else
                    throw new DirectoryNotFoundException("Directory should exist: " + logDir);
            }

            return logDirs;
        }