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 を実装する方法