fs: add skipSymlinkDir option to skip symbolic dirs for fs.readdir
- Add a
skipSymlinkDir
option to thefs.readdir
to allow for behavior similar to thefind [path] -print
andfind -L [path] -print
commands. This option would control whether symbolic link directories are skipped or traversed during directory listing. - Ensure that checking if the current directory is a symlink leads to consistent file listings in
fs.readdir([path], {withFileTypes: false})
andfs.readdir([path], {withFileTypes: true})