Function: tramp-default-file-modes
tramp-default-file-modes is a byte-compiled function defined in
tramp.el.gz.
Signature
(tramp-default-file-modes FILENAME &optional FLAG)
Documentation
Return file modes of FILENAME as integer.
If optional FLAG is ‘nofollow’, do not follow FILENAME if it is a
symbolic link. If the file modes of FILENAME cannot be
determined, return the value of default-file-modes, without
execute permissions.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-default-file-modes (filename &optional flag)
"Return file modes of FILENAME as integer.
If optional FLAG is ‘nofollow’, do not follow FILENAME if it is a
symbolic link. If the file modes of FILENAME cannot be
determined, return the value of `default-file-modes', without
execute permissions."
(or (tramp-compat-file-modes filename flag)
(logand (default-file-modes) #o0666)))