Function: cider--url-to-file
cider--url-to-file is a byte-compiled function defined in
cider-common.el.
Signature
(cider--url-to-file URL)
Documentation
Return the filename from the resource URL.
Uses url-generic-parse-url to parse the url. The filename is extracted and
then url decoded. If the decoded filename has a Windows device letter followed
by a colon immediately after the leading '/' then the leading '/' is dropped to
create a valid path.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-common.el
(defun cider--url-to-file (url)
"Return the filename from the resource URL.
Uses `url-generic-parse-url' to parse the url. The filename is extracted and
then url decoded. If the decoded filename has a Windows device letter followed
by a colon immediately after the leading '/' then the leading '/' is dropped to
create a valid path."
(let ((filename (url-unhex-string (url-filename (url-generic-parse-url url)))))
(if (string-match "^/\\([a-zA-Z]:/.*\\)" filename)
(match-string 1 filename)
filename)))