You should filter these files yourself, you can write something like this:
var files = Directory.GetFiles(jobDir).Where(name => !name.EndsWith(".xml"));
More Related Contents:
- Better way to check if a Path is a File or a Directory?
- How to get files in a relative path in C#
- Retrieving files from directory that contains large amount of files
- How do I get the directory from a file’s full path?
- Find all files in a folder
- How do I detect when a directory or file changes without constant scanning
- Delete files older than 3 months old in a directory using .NET
- C#: How to open Windows Explorer windows with a number of files selected
- C# Searching for files and folders except in certain folders
- Method to get all files within folder and subfolders that will return a list
- Delete a file being used by another process
- Open existing file, append a single line
- Notification when a file changes?
- C# Test if user has write access to a folder
- How to get a path to the desktop for current user in C#?
- If a folder does not exist, create it
- Create a directory if it doesn’t exist
- Why can’t I use System.IO.File methods in an MVC controller?
- Get target of shortcut folder
- How to use httpwebrequest to pull image from website to local file
- How can I create a temp file with a specific extension with .NET?
- File System TreeView
- Open a file and replace strings in C#
- Extracting Windows File Properties (Custom Properties) C#
- How do I find the parent directory in C#?
- How do I get File Type Information based on extension? (not MIME) in c#
- How to split a large file into chunks in c#?
- .Net’s Directory Services throws a strange exception
- Find a file within all possible folders?
- Best way to iterate folders and subfolders