private List <NPath> FindDirectories()
        {
            var skippedDirs       = SourcePath.Directories(true).Where(ShouldSkipName).ToList();
            var ignoreDirectories = SourcePath.Files("*.asm?ef", recurse: true)
                                    .Where(f => f.Parent != SourcePath)
                                    .Select(asmdef => asmdef.Parent)
                                    .Concat(skippedDirs)
                                    .ToList();

            return(ignoreDirectories);
        }
Exemplo n.º 2
0
        public override IEnumerable <NPath> GetFiles()
        {
            var files             = SourcePath.Files("*.cs", recurse: true);
            var beeDirs           = SourcePath.Directories(true).Where(d => d.FileName == "bee~").ToList();
            var ignoreDirectories = SourcePath.Files("*.asm?ef", recurse: true)
                                    .Where(f => f.Parent != SourcePath)
                                    .Select(asmdef => asmdef.Parent)
                                    .Concat(beeDirs)
                                    .ToList();

            return(files.Where(f => f.HasExtension("cs") && !ignoreDirectories.Any(f.IsChildOf)));
        }
 public override IEnumerable <NPath> GetDirectories()
 {
     return(SourcePath.Directories(true).Where(d => ShouldSkipName(d) && !FindDirectories().Any(d.IsChildOf)));
 }