Function: package--archive-file-exists-p

package--archive-file-exists-p is a byte-compiled function defined in package.el.gz.

Signature

(package--archive-file-exists-p LOCATION FILE)

Documentation

Return t if FILE exists in remote LOCATION.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package--archive-file-exists-p (location file)
  "Return t if FILE exists in remote LOCATION."
  (let ((http (string-match "\\`https?:" location)))
    (if http
        (progn
          (require 'url-http)
          (url-http-file-exists-p (concat location file)))
      (file-exists-p (expand-file-name file location)))))