On hierarchical filesystems, a directory is just a file (albeit of a specific type), but nonetheless a file that has the same attributes any other file has: permissions, modification or other date(s), a size. The directory-specific functions DOPEN() et al are suited to mostly process the contents of the directory, but they miss out on the file-specific attributes of the directory file itself.
I therefore propose to enable the FOPEN() and other functions to work with a directory file for the purely FILE aspects of it.