Function: tramp-sh-handle-set-file-times
tramp-sh-handle-set-file-times is a byte-compiled function defined in
tramp-sh.el.gz.
Signature
(tramp-sh-handle-set-file-times FILENAME &optional TIME FLAG)
Documentation
Like set-file-times for Tramp files.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-sh-handle-set-file-times (filename &optional time flag)
"Like `set-file-times' for Tramp files."
(tramp-skeleton-set-file-modes-times-uid-gid filename
(when (tramp-get-remote-touch v)
(tramp-send-command-and-check
v (format
"env TZ=UTC0 %s %s %s %s"
(tramp-get-remote-touch v)
(if (tramp-get-connection-property v "touch-t")
(format
"-t %s"
(format-time-string "%Y%m%d%H%M.%S" (tramp-defined-time time) t))
"")
(if (eq flag 'nofollow) "-h" "")
(tramp-shell-quote-argument localname))))))