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