Function: tramp-gvfs-handle-get-remote-uid

tramp-gvfs-handle-get-remote-uid is a byte-compiled function defined in tramp-gvfs.el.gz.

Signature

(tramp-gvfs-handle-get-remote-uid VEC ID-FORMAT)

Documentation

The uid of the remote connection VEC, in ID-FORMAT.

ID-FORMAT valid values are string and integer.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-gvfs.el.gz
(defun tramp-gvfs-handle-get-remote-uid (vec id-format)
  "The uid of the remote connection VEC, in ID-FORMAT.
ID-FORMAT valid values are `string' and `integer'."
  ;; The result is cached in `tramp-get-remote-uid'.
  (if (equal id-format 'string)
      (tramp-file-name-user vec)
    (when-let ((localname
		(tramp-get-connection-property (tramp-get-process vec) "share")))
      (file-attribute-user-id
       (file-attributes (tramp-make-tramp-file-name vec localname) id-format)))))