insert-directory-safely

insert-directory-safely is a compiled Lisp function in `files.el'.

(insert-directory-safely FILE SWITCHES &optional WILDCARD FULL-DIRECTORY-P)

Insert directory listing for FILE, formatted according to SWITCHES.

Like `insert-directory', but if FILE does not exist, it inserts a
message to that effect instead of signaling an error.