Favour Dir.exist? over File.exist? for directory presence checking