exists?(p1) public


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

Show source
Register or log in to add new notes.
April 26, 2012 - (v1_9_3_125)
0 thanks


The documentation is using File.directory?(“/path/to/directory”), but the method being referred to is Dir.exists?().

 => true

The source code is the same as File.directory?().