lib/chef_fs/file_pattern.rb
def match?(path)
      argument_is_absolute = !!(path =~ /^#{ChefFS::PathUtils::regexp_path_separator}/)
      return false if is_absolute != argument_is_absolute
      path = path[1,path.length-1] if argument_is_absolute
      !!regexp.match(path)
    end
def match?(path)
      argument_is_absolute = !!(path =~ /^#{ChefFS::PathUtils::regexp_path_separator}/)
      return false if is_absolute != argument_is_absolute
      path = path[1,path.length-1] if argument_is_absolute
      !!regexp.match(path)
    end
def match? ( path ) argument_is_absolute = ! ! ( path =~ / #{ ChefFS :: PathUtils :: regexp_path_separator } / ) return false if is_absolute != argument_is_absolute path = path [ 1 , path . length - 1 ] if argument_is_absolute ! ! regexp . match ( path ) end
Returns <tt>true+ if this pattern matches the path, <tt>false+ otherwise.

   abc/*/def.match?('abc/foo/def') == true
   abc/*/def.match?('abc/foo') == false
Returns <tt > true + if this pattern matches the path <tt > false + otherwise .