how to check for a directroy to see if it exists in ruby code example
Example: ruby check if exists
apple = 1
defined?(apple)
# "local-variable"
defined?(bacon)
# nil
apple = 1
defined?(apple)
# "local-variable"
defined?(bacon)
# nil