Passing multiple extensions to the System.IO.Directory.GetFiles method [duplicate]
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.
精彩评论