Skip to content
class method

File.exist?

(::string | ::_ToPath | ::IO file_name) -> bool
File.exist?(file_name) → true or false

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.