Class: Puppet::Util::FileUtils

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

Overview

File operation related utils

Class Method Summary collapse

Class Method Details

.absolute_path?(path) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
18
19
20
21
22
# File 'lib/puppet/util/file_utils.rb', line 15

def self.absolute_path?(path)
  begin
    return true if (@regexes[:posix] =~ path) || (@regexes[:windows] =~ path)
  rescue TypeError
    false
  end
  false
end