Quicker (quickest?) way to get number of files in a directory with over 200,000 files

前端 未结 10 1420
Happy的楠姐
Happy的楠姐 2021-02-04 07:35

I have some directories containing test data, typically over 200,000 small (~4k) files per directory.

I am using the following C# code to get the number of files in a di

10条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 08:11

    The file system is not designed for this layout. You'll have to reorganize it (to have fewer files per folder) if you want to work on that performance problem.

提交回复
热议问题