Exemple #1
0
    public static List <FileInfo> GetUsefulFileInfosFromDir(string path)
    {
        List <FileInfo> fileInfos = GetFileInfosFromDir(path);
        List <FileInfo> result    = ListUtility.FilterList(fileInfos, (FileInfo info) => {
            return(!ListUtility.IsContainElement(_filterFiles, info.Name));
        });

        return(result);
    }
Exemple #2
0
    static List <FileInfo> GetFileInfosFromDir(string path)
    {
        Debug.Assert(Directory.Exists(path));
        DirectoryInfo dirInfo = new DirectoryInfo(path);

        FileInfo[]      fileInfos = dirInfo.GetFiles("*", SearchOption.AllDirectories);
        List <FileInfo> result    = ListUtility.FilterList(fileInfos, (FileInfo info) => {
            return(!info.FullName.Contains(".svn"));
        });

        return(result);
    }