Skip to content

Commit b1d8105

Browse files
committed
document follow+nodir
1 parent b5d0f64 commit b1d8105

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,9 @@ share the previously loaded cache.
509509
- `nodir` Do not match directories, only files. (Note: to match
510510
_only_ directories, put a `/` at the end of the pattern.)
511511

512+
Note: when `follow` and `nodir` are both set, then symbolic
513+
links to directories are also omitted.
514+
512515
- `stat` Call `lstat()` on all entries, whether required or not
513516
to determine whether it's a valid match. When used with
514517
`withFileTypes`, this means that matches will include data such
@@ -539,6 +542,9 @@ share the previously loaded cache.
539542
it is not the first item in the pattern, or none if it is the
540543
first item in the pattern, following the same behavior as Bash.
541544

545+
Note: when `follow` and `nodir` are both set, then symbolic
546+
links to directories are also omitted.
547+
542548
- `realpath` Set to true to call `fs.realpath` on all of the
543549
results. In the case of an entry that cannot be resolved, the
544550
entry is omitted. This incurs a slight performance penalty, of

0 commit comments

Comments
 (0)