How to get all files in a directory C#? code example Example: get all files in all subdirectories c# Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)