See File.directory?.
File.directory?
Returns:
38 39 40
# File 'lib/path/file_predicates.rb', line 38 def directory? File.directory?(@path) end