File Directory Ruby

File.file?( "yourFile.txt" ) # => true