class ChefConfig::PathHelper
def self.escape_glob(*parts)
to be escaped before globbing can be done.
Paths which may contain glob-reserved characters need
Note: this method is deprecated. Please use escape_glob_dirs
def self.escape_glob(*parts) path = cleanpath(join(*parts)) path.gsub(/[\\\{\}\[\]\*\?]/) { |x| "\\" + x } end