Function: dired-rsync--quote-and-maybe-convert-from-tramp
dired-rsync--quote-and-maybe-convert-from-tramp is a natively compiled
function defined in dired-rsync.el.
Signature
(dired-rsync--quote-and-maybe-convert-from-tramp FILE-OR-PATH)
Documentation
Reformat a tramp FILE-OR-PATH to one usable for rsync.
Source Code
;; Defined in /nix/store/i42d1fmg6q3dci37c05j415vhqjrzi15-emacs-packages-deps/share/emacs/site-lisp/elpa/dired-rsync-20261005.758/dired-rsync.el
(defun dired-rsync--quote-and-maybe-convert-from-tramp (file-or-path)
"Reformat a tramp FILE-OR-PATH to one usable for rsync."
(if (tramp-tramp-file-p file-or-path)
(with-parsed-tramp-file-name file-or-path tfop
(format "%s%s:%s" (if tfop-user (format "%s@" tfop-user) "") tfop-host
(shell-quote-argument tfop-localname)))
(shell-quote-argument file-or-path)))