file-modes

file-modes is a built-in function in `C source code'.

(file-modes FILENAME)

Return mode bits of file named FILENAME, as an integer.
Return nil, if file does not exist or is not accessible.