Find number of files with a specific extension, in all subdirectories

前端 未结 7 1876
执念已碎
执念已碎 2020-12-03 07:16

Is there a way to find the number of files of a specific type without having to loop through all results inn a Directory.GetFiles() or similar method? I am looking for somet

7条回答
  •  清歌不尽
    2020-12-03 08:15

    Someone has to do the iterating part.

    AFAIK, there is no such method present in .NET already, so I guess that someone has to be you.

提交回复
热议问题