Function: file-readable-p

file-readable-p is a function defined in fileio.c.

Signature

(file-readable-p FILENAME)

Documentation

Return t if file FILENAME exists and you can read it.

See also file-exists-p and file-attributes.

Other relevant functions are documented in the file group.

View in manual

Probably introduced at or before Emacs version 18.

Shortdoc

;; file
(file-readable-p "/tmp/foo")
    e.g. => t

Aliases

f-readable-p f-readable?

Source Code

// Defined in /usr/src/emacs/src/fileio.c
{
  return check_file_access (filename, Qfile_readable_p, R_OK);
}