File Directory Ruby

File.directory? directory_name                 # => true
File.directory? filename                       # => false