Check if Folder Exists in Ruby (Case-Sensitive)

Ruby’s Dir.exist? is tied to your OS, which may or may not be case sensitive when it comes to directories. That means that it is possible for a directory named ‘Derp’ to exist, but Dir.exist?(‘derp’) would return true. Here’s a convoluted piece of code to get past that. It adds another method to the Dir […]