Function: image-dired-dir
image-dired-dir is a byte-compiled function defined in
image-dired-util.el.gz.
Signature
(image-dired-dir)
Documentation
Return the current thumbnail directory (from variable image-dired-dir(var)/image-dired-dir(fun)).
Create the thumbnail directory if it does not exist.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/image/image-dired-util.el.gz
(defun image-dired-dir ()
"Return the current thumbnail directory (from variable `image-dired-dir').
Create the thumbnail directory if it does not exist."
(let ((image-dired-dir
(file-name-as-directory
(expand-file-name image-dired-dir))))
(unless (file-directory-p image-dired-dir)
(with-file-modes #o700
(make-directory image-dired-dir t))
(message "Thumbnail directory created: %s" image-dired-dir))
image-dired-dir))