class ChefConfig::PathHelper
def self.escape_glob_dir(*parts)
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