Class: Dir

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

Class Method Summary collapse

Class Method Details

.exists?(file_name) ⇒ Boolean

Returns:

  • (Boolean)


36
37
38
39
# File 'lib/puppet/util/monkey_patches.rb', line 36

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