Function: f-swap-ext
f-swap-ext is a byte-compiled function defined in f.el.
Signature
(f-swap-ext PATH EXT)
Documentation
Return PATH but with EXT as the new extension.
EXT must not be nil or empty.
Source Code
;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
(defun f-swap-ext (path ext)
"Return PATH but with EXT as the new extension.
EXT must not be nil or empty."
(if (s-blank-p ext)
(error "Extension cannot be empty or nil")
(concat (f-no-ext path) "." ext)))