File Directory Ruby

File::ftype( "access.rb" ) # => "file"