42: def search(request)
43: mount, relative_path = configuration.split_path(request)
44:
45: unless mount and paths = mount.search(relative_path, request)
46: Puppet.info "Could not find filesystem info for file '%s' in environment %s" % [request.key, request.environment]
47: return nil
48: end
49:
50: filesets = paths.collect do |path|
51:
52: Puppet::FileServing::Fileset.new(path, request)
53: end
54:
55: Puppet::FileServing::Fileset.merge(*filesets).collect do |file, base_path|
56: inst = model.new(base_path, :relative_path => file)
57: inst.links = request.options[:links] if request.options[:links]
58: inst.collect
59: inst
60: end
61: end