📜  c# 从文件路径获取文件夹路径 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:14.529000             🧑  作者: Mango

代码示例6
string fileName = @"test.txt";
    string currentDirectory = Directory.GetCurrentDirectory();
    string[] fullFilePath = Directory.GetFiles(currentDirectory, filename, SearchOption.AllDirectories);