dired-before-readin-hook

dired-before-readin-hook is a variable defined in `dired.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

Documentation:
This hook is run before a Dired buffer is read in (created or reverted).

You can customize this variable.