class ChefConfig::PathHelper

def self.escape_glob_dir(*parts)

This is because only forwardslashes should be used with dir (even for windows)
This function does not switch to backslashes for windows
def self.escape_glob_dir(*parts)
  path = Pathname.new(join(*parts)).cleanpath.to_s
  path.gsub(/[\\\{\}\[\]\*\?]/) { |x| "\\" + x }
end