Class: File

Inherits:
Object show all
Defined in:
lib/puppet/util/monkey_patches.rb

Direct Known Subclasses

Puppet::FileSystem::Uniquefile

Class Method Summary collapse

Class Method Details

.exists?(file_name) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
48
# File 'lib/puppet/util/monkey_patches.rb', line 45

def self.exists?(file_name)
  warn("File.exists?('#{file_name}') is deprecated, use File.exist? instead") if $VERBOSE
  File.exist?(file_name)
end