directory?

File.directory?(file_name) â true or false
Instance Public methods

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

file_name can be an IO object.

File.directory?(".")
doc_ruby_on_rails
2015-04-06 14:37:23
Comments
Leave a Comment

Please login to continue.