Function: eww--download-directory

eww--download-directory is a byte-compiled function defined in eww.el.gz.

Signature

(eww--download-directory)

Documentation

Return the name of the EWW download directory.

The default is specified by eww-default-download-directory; however, if that directory doesn't exist and the DOWNLOAD XDG user directory is defined, use the latter instead.

Source Code

;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww--download-directory ()
  "Return the name of the EWW download directory.
The default is specified by `eww-default-download-directory'; however,
if that directory doesn't exist and the DOWNLOAD XDG user directory
is defined, use the latter instead."
  (or (and (file-exists-p eww-default-download-directory)
           eww-default-download-directory)
      (when-let ((dir (xdg-user-dir "DOWNLOAD")))
        (file-name-as-directory dir))
      eww-default-download-directory))