Function: mh-x-image-get-download-state

mh-x-image-get-download-state is a byte-compiled function defined in mh-xface.el.gz.

Signature

(mh-x-image-get-download-state FILE)

Documentation

Check the state of FILE by following any symbolic links.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-xface.el.gz
(defun mh-x-image-get-download-state (file)
  "Check the state of FILE by following any symbolic links."
  (unless (file-exists-p mh-x-image-cache-directory)
    (call-process "mkdir" nil nil nil mh-x-image-cache-directory))
  (cond ((file-symlink-p file)
         (intern (file-name-nondirectory (file-chase-links file))))
        ((not (file-exists-p file)) nil)
        (t 'ok)))