Puppet Function: file_exists

Defined in:
puppet/modules/thumbor/lib/puppet/parser/functions/file_exists.rb
Function type:
Ruby 3.x API

Overview

file_exists()Any

Returns:

  • (Any)


4
5
6
# File 'puppet/modules/thumbor/lib/puppet/parser/functions/file_exists.rb', line 4

newfunction(:file_exists, type: :rvalue) do |args|
  return File.exists?(args[0])
end