Variable: tramp-stat-file-attributes

tramp-stat-file-attributes is a variable defined in tramp-sh.el.gz.

Value

"(%s -c '((/////%%N/////) %%h (/////%%U///// . %%u) (/////%%G///// . %%g) %%X %%Y %%Z %%s /////%%A///// t %%i -1)' \"$1\" %n || echo nil) | sed -e 's/\"/\\\\\"/g' -e 's/\\/\\/\\/\\/\\//\"/g'"

Documentation

Shell function to produce output suitable for use with file-attributes on the remote file system. Format specifiers are replaced by tramp-expand-script, percent characters need to be doubled.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defconst tramp-stat-file-attributes
  (format
   (concat
    "(%%s -c"
    " '((%s%%%%N%s) %%%%h (%s%%%%U%s . %%%%u) (%s%%%%G%s . %%%%g)"
    " %%%%X %%%%Y %%%%Z %%%%s %s%%%%A%s t %%%%i -1)' \"$1\" %%n || echo nil) |"
    " sed -e 's/\"/\\\\\"/g' -e 's/%s/\"/g'")
   tramp-stat-marker tramp-stat-marker ; %%N
   tramp-stat-marker tramp-stat-marker ; %%U
   tramp-stat-marker tramp-stat-marker ; %%G
   tramp-stat-marker tramp-stat-marker ; %%A
   tramp-stat-quoted-marker)
  "Shell function to produce output suitable for use with `file-attributes'
on the remote file system.
Format specifiers are replaced by `tramp-expand-script', percent
characters need to be doubled.")