Function: tramp-get-remote-uid

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

Signature

(tramp-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.el.gz
(defun tramp-get-remote-uid (vec id-format)
  "The uid of the remote connection VEC, in ID-FORMAT.
ID-FORMAT valid values are `string' and `integer'."
  (or (and (tramp-file-name-p vec)
	   (with-tramp-connection-property vec (format "uid-%s" id-format)
	     (tramp-file-name-handler #'tramp-get-remote-uid vec id-format)))
      ;; Ensure there is a valid result.
      (and (equal id-format 'integer) tramp-unknown-id-integer)
      (and (equal id-format 'string) tramp-unknown-id-string)))