method

file?

v2_1_10 - Show latest stable - Class: File
file?(p1)
public

Returns true if the named file exists and is a regular file.

file_name can be an IO object.