File Directory Ruby

directory_name = 'a_directory'
FileUtils.mkdir(directory_name)
File.file? directory_name                    # => false
File.exists? directory_name                  # => true