This method is only available on newer versions. The first available version (v2_6_3) is shown here.
exists?()
Checks if the destination file already exists.
Boolean
true if the file exists, false otherwise.
# File lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb, line 45 def exists? ::File.exist?(destination) end