method

exist?

v1_9_1_378 - Show latest stable - Class: Dir
exist?(p1)
public

?

Returns true if the named file is a directory, false otherwise.

File.directory?(".")