C# return full path with GetFiles
问题 Use this code for search files in directory: FileInfo[] files = null; string path = some_path; DirectoryInfo folder = new DirectoryInfo(path); files = folder.GetFiles("*.*", SearchOption.AllDirectories); This return only filename and extension (text.exe). How to return full path to file(C:\bla\bla\bla\text.exe)? If I use Directory.GetFiles("*.*") , this return full path. But if folder contains point in name(C:\bla\bla\test.0.1), result contains path to folder without file: 0 C:\bla\bla\bla