I have a command as below. I find if I use a file pattern of *.csv it also picks up items with a .csvx extension. Maybe it’s a throwback to the 8.3 filename days – anyone know a way that would return them properly, preferably without rolling our own?
files = (from file in Directory.EnumerateFiles(sourceFolder, filePattern, SearchOption.TopDirectoryOnly) select file).ToList();
Just a workaround but might be good enough: