# Check if filesystem node at path "name" is a directory File.directory?("name") # Check if it's a file File.file?("name")