开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜