OptionalrecursiveWhether to recursively read the contents of subdirectories.
OptionalwithWhether each file entry carries metadata (type, size, lastModified).
Metadata costs one getFile() lookup per file on the worker side and makes the
response considerably larger, which matters when listing a large tree. With
false the entries only carry path and kind - read metadata with statSync
when you actually need it.
Options for reading directories synchronously.
Since
2.0.0