Variable: find-file-run-dired
find-file-run-dired is a customizable variable defined in files.el.gz.
Value
t
Documentation
Non-nil means allow find-file to visit directories.
To visit the directory, find-file runs find-directory-functions.
Probably introduced at or before Emacs version 16.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom find-file-run-dired t
"Non-nil means allow `find-file' to visit directories.
To visit the directory, `find-file' runs `find-directory-functions'."
:type 'boolean
:group 'find-file)