Use File.exist? instead of File.exists? since the latter is depcrecated.