VMS Help — CRTL Feature Logical Names, DECC$READDIR_KEEPDOTDIR
The default behavior when reporting files in UNIX style from
readdir is to report directories without a file type.
With DECC$READDIR_KEEPDOTDIR enabled, directories are reported in
UNIX style with a file type of ".DIR".