Function: tramp-get-remote-gid-with-python
tramp-get-remote-gid-with-python is a byte-compiled function defined
in tramp-sh.el.gz.
Signature
(tramp-get-remote-gid-with-python VEC ID-FORMAT)
Documentation
Implement tramp-get-remote-gid for Tramp files using python.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-get-remote-gid-with-python (vec id-format)
"Implement `tramp-get-remote-gid' for Tramp files using `python'."
(tramp-send-command-and-read
vec
(format "%s -c \"%s\""
(tramp-get-remote-python vec)
(if (equal id-format 'integer)
"import os; print (os.getgid())"
"import os, grp; print ('\\\"' + grp.getgrgid(os.getgid())[0] + '\\\"')"))))