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"  

Related questions

0 votes
asked Nov 8, 2020 in Hadoop by rahuljain1
0 votes
asked Mar 21, 2021 in JavaScript by rajeshsharma
...