Subject: bug#69085: Acknowledgement (29.2; Tramp: Extend tramp-make-copy-program-file-name via tramp-methods)

From: Sean Devlin <[email-masked]>
Date: Mon, 12 Feb 2024 15:14:36 -0500

I was able to work around the issue by advising tramp-make-copy-program-file-name:

(defun tramp-mymethod-make-copy-program-file-name (vec)
  (when (tramp-mymethod-file-name-p vec)
    (let ((localname
           (directory-file-name (tramp-file-name-unquote-localname vec))))
      (format "myprefix:%s" localname))))

(advice-add 'tramp-make-copy-program-file-name
            :before-until #'tramp-mymethod-make-copy-program-file-name)