Function: eca--uri-to-path
eca--uri-to-path is a natively compiled function defined in
eca-util.el.
Signature
(eca--uri-to-path URI)
Documentation
Convert a file URI to a file path.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-util.el
(defun eca--uri-to-path (uri)
"Convert a file URI to a file path."
(let ((path (cond
((string-prefix-p "file:///" uri)
(url-unhex-string
(substring uri (if (eq system-type 'windows-nt) 8 7))))
((string-prefix-p "file://" uri)
(url-unhex-string (substring uri 6)))
(t uri))))
(eca--path-remote-to-local path)))