0 votes
in Ruby by
How to check whether a directory exist or not in Ruby?

1 Answer

0 votes
by

To check whether a directory exists or not exists? Method is used.

Syntax:

puts Dir.exists? "dirName"  

...