Function: dired-rsync--build-cmd
dired-rsync--build-cmd is a natively compiled function defined in
dired-rsync.el.
Signature
(dired-rsync--build-cmd SFILES DEST)
Documentation
Construct a rsync command for SFILES to DEST copy.
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--build-cmd (sfiles dest)
"Construct a rsync command for SFILES to DEST copy."
(if (and (tramp-tramp-file-p dest)
(tramp-tramp-file-p (-first-item sfiles)))
(let ((shost (dired-rsync--extract-host-from-tramp (-first-item sfiles)))
(sport (dired-rsync--extract-port-from-tramp (-first-item sfiles)))
(src-files (dired-rsync--extract-paths-from-tramp sfiles))
(dhost (dired-rsync--extract-host-from-tramp dest t))
(dport (dired-rsync--extract-port-from-tramp dest))
(duser (dired-rsync--extract-user-from-tramp dest))
(dpath (-first-item (dired-rsync--extract-paths-from-tramp (list dest)))))
(dired-rsync--remote-to-remote-cmd shost sport src-files
duser dhost dport dpath))
(dired-rsync--remote-to-from-local-cmd sfiles dest)))