Function: tramp-sh-handle-file-readable-p

tramp-sh-handle-file-readable-p is a byte-compiled function defined in tramp-sh.el.gz.

Signature

(tramp-sh-handle-file-readable-p FILENAME)

Documentation

Like file-readable-p for Tramp files.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-sh-handle-file-readable-p (filename)
  "Like `file-readable-p' for Tramp files."
  (with-parsed-tramp-file-name (expand-file-name filename) nil
    (with-tramp-file-property v localname "file-readable-p"
      ;; Examine `file-attributes' cache to see if request can be
      ;; satisfied without remote operation.
      (if (tramp-file-property-p v localname "file-attributes")
	  (tramp-handle-file-readable-p filename)
	(tramp-run-test v "-r" localname)))))