C# Recurse Directories using Directory.GetFiles and search pattern

前端 未结 6 1855
时光说笑
时光说笑 2021-01-21 02:42

I want to find all excel files within a directory structure using recursion. The problem is, the search pattern used in Directory.GetFiles only allows a single extension at a t

6条回答
  •  旧时难觅i
    2021-01-21 03:19

    In .NET 4 there is an extra overload that allows the inclusion of subfolders

    EDIT oops I did not read the question very well...

    Have a look here

提交回复
热议问题