@jasperla sorry, I should have corrected you earlier, should be !File.exists? (capitalised first letter).