Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定路径 c:\someFolder\**\*.exe。如何使用此目录路径获取文件列表。我知道可以使用Directory.GetFiles(directoryPath),但这仅在 directoryPath 中没有通配符时才有效。
Directory.GetFiles(directoryPath)
请参阅:如何在 C# 中实现 glob