facebook / facebook/watchman

Question - `hint_num_files_per_dir` recursive or not?

Open
#1,155 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I'm just looking for some clarity on the documentation for [hint_num_files_per_dir](https://facebook.github.io/watchman/docs/config#hint_num_files_per_dir).

Should this be set to the largest number of files in a single directory, one level deep, or should it contain the number of files in all the subdirectories under it as well? I've assumed the former for now.

E.g. with this setup:

```
directory_a/
├─ file_a
├─ file_b
├─ directory_b/
│ ├─ file_c
│ ├─ directory_c/
│ │ ├─ file_d
```

Is `directory_a`'s `num_files_per_dir` 2 or 4?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.