Closed prettydiff closed 1 year ago
Even on the returned Dirent types you must still call the type checking methods to determine the file system artifact type. As a result there is no value gain here.
https://nodejs.org/dist/latest-v20.x/docs/api/fs.html#class-fsdirent
Interestingly there is now a recursive option as of Node version 20.1.0. With that option I may not have starting writing this library (7 or 8 years ago) and thus not this project. The recursive option cannot be used now as it would break the depth option this project provides.
Investigate using option
withFileTypes
on readdir in the directory.ts file for performance and simplicity.