# file? will only return true for files File.file?(filename) # Will also return true for directories File.exist?(filename)