Function: dired-maybe-create-dirs

dired-maybe-create-dirs is a byte-compiled function defined in dired-aux.el.gz.

Signature

(dired-maybe-create-dirs DIR)

Documentation

Create DIR if doesn't exist according to dired-create-destination-dirs.

Source Code

;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defun dired-maybe-create-dirs (dir)
  "Create DIR if doesn't exist according to `dired-create-destination-dirs'."
  (when (and dired-create-destination-dirs (not (file-exists-p dir)))
    (if (or (eq dired-create-destination-dirs 'always)
            (yes-or-no-p (format "Create destination dir `%s'? " dir)))
        (dired-create-directory dir))))