Function: www-url-expand-file-name

www-url-expand-file-name is an autoloaded and byte-compiled function defined in hsys-www.el.

Signature

(www-url-expand-file-name PATH &optional DIR)

Documentation

Expand and return non-url and non-remote PATH in DIR.

Return http urls unchanged. Normalize remote paths.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hsys-www.el
;;;###autoload
(defun www-url-expand-file-name (path &optional dir)
  "Expand and return non-url and non-remote PATH in DIR.
Return http urls unchanged.  Normalize remote paths."
  (when (listp path)
    (setq path (car path)
	  dir  (car (cdr path))))
  (if (string-match "\\`www\\.\\|\\`https?:" path)
      path
    (require 'hpath)
    (or (hpath:remote-p path)
	(expand-file-name path dir))))