method

exist?

v2_1_10 - Show latest stable - Class: FileTest
exist?(p1)
public

Return true if the named file exists.

file_name can be an IO object.

“file exists” means that stat() or fstat() system call is successful.