use File.exist? instead of File.exists?
Merge pull request #13983 from hsbt/remove-warning

use File.exist? instead of File.exists?