Method: Chef::ChefFS::PathUtils.os_path_eq?
- Defined in:
- lib/chef/chef_fs/path_utils.rb
.os_path_eq?(left, right) ⇒ Boolean
Compares two path fragments according to the case-sensitivity of the host platform.
103 104 105 |
# File 'lib/chef/chef_fs/path_utils.rb', line 103 def self.os_path_eq?(left, right) ChefUtils.windows? ? left.casecmp(right) == 0 : left == right end |