File Directory Ruby

File.executable?( "yourFile.txt" ) # => false