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)


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

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