Function: tramp-do-file-attributes-with-stat
tramp-do-file-attributes-with-stat is a byte-compiled function defined
in tramp-sh.el.gz.
Signature
(tramp-do-file-attributes-with-stat VEC LOCALNAME)
Documentation
Implement file-attributes for Tramp files using stat(1) command.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-do-file-attributes-with-stat (vec localname)
"Implement `file-attributes' for Tramp files using stat(1) command."
(tramp-message vec 5 "file attributes with stat: %s" localname)
(cond
((tramp-remote-selinux-p vec)
(tramp-maybe-send-script
vec tramp-stat-file-attributes-with-selinux
"tramp_stat_file_attributes_with_selinux")
(tramp-send-command-and-read
vec (format "tramp_stat_file_attributes_with_selinux %s"
(tramp-shell-quote-argument localname))))
(t
(tramp-maybe-send-script
vec tramp-stat-file-attributes "tramp_stat_file_attributes")
(tramp-send-command-and-read
vec (format "tramp_stat_file_attributes %s"
(tramp-shell-quote-argument localname))))))