开发者

Passing multiple extensions to the System.IO.Directory.GetFiles method [duplicate]

开发者 https://www.devze.com 2023-03-06 12:20 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: GetFiles with multiple extentions
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

GetFiles with multiple extentions

How can I specify multiple extensions for the System.IO.Directory.GetFiles method?

I have tried.

string[] files = System.IO.Directory.GetFiles(path, "*.jpg *.png");

and

string[] file开发者_运维问答s = System.IO.Directory.GetFiles(path, "*.jpg, *.png");

to no success.

Is this even possible?


You may checkout the following blog post.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号