directory?()
Returns true if the entry is a directory (i.e., the value of the type fact is dir, cdir, or pdir).
# File lib/net/ftp.rb, line 956 def directory? if /\A[cp]?dir\z/.match(facts["type"]) return true else return false end end