Puppet Function: extlib::file_separator

Defined in:
functions/file_separator.pp
Function type:
Puppet Language

Summary

Returns the os specific file path separator.

Overview

extlib::file_separator()String

Examples:

Example of how to use

extlib::file_separator() => '/'

Returns:

  • (String)
    • The os specific path separator.



5
6
7
# File 'functions/file_separator.pp', line 5

function extlib::file_separator() >> String {
  ($::facts['kernel'] == 'windows' ) ? { true => "\\", false => '/' }
}