dir-related specs
use `file` mode template both for viewing a file and for a directory