To check whether a directory exists or not exists? Method is used.
Syntax:puts Dir.exists? "dirName"
Syntax:
puts Dir.exists? "dirName"