exist?(p1) public

?

Returns true if the named file is a directory, or a symlink that points at a directory, and false otherwise.

File.directory?(".")
Show source
Register or log in to add new notes.