filepattern

Directory.GetFileSystemInfos(string) returns non-matching files.

I'm using the follow command to get a list of FileSystemInfo's IList<FileSystemInfo> requestFiles = new List<FileSystemInfo>( _RequestDirectory.GetFileSystemInfos(GetSearchPatern())); Get search pattern returns "*.exr". The list still includes files that end with ".exr2", but does not include thos...

Recursively add files by pattern

How do I recursively add files by a pattern (or glob) located in different directories? For example, I'd like to add A/B/C/foo.java and D/E/F/bar.java (and several other java files) with one command: git add '*.java' Unfortunately, that doesn't work as expected. ...