Function: file-user-uid
file-user-uid is a byte-compiled function defined in simple.el.gz.
Signature
(file-user-uid)
Documentation
Return the connection-local effective uid.
This is similar to user-uid, but may invoke a file name handler
based on default-directory. See Info node (elisp)Magic File
Names.
If a file name handler is unable to retrieve the effective uid, this function will instead return -1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun file-user-uid ()
"Return the connection-local effective uid.
This is similar to `user-uid', but may invoke a file name handler
based on `default-directory'. See Info node `(elisp)Magic File
Names'.
If a file name handler is unable to retrieve the effective uid,
this function will instead return -1."
(if-let* ((handler (find-file-name-handler default-directory 'file-user-uid)))
(funcall handler 'file-user-uid)
(user-uid)))