• +91 9723535972
  • info@interviewmaterial.com

Ruby Interview Questions and Answers

Question - How to check whether a directory exist or not in Ruby?

Answer -

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

Syntax:

puts Dir.exists? "dirName"  

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners