# File lib/puppet/network/handler/fileserver.rb, line 179
179:         def retrieve(url, links = :ignore, client = nil, clientip = nil)
180:             links = links.intern if links.is_a? String
181: 
182:             mount, path = convert(url, client, clientip)
183: 
184:             if client
185:                 mount.info "Sending %s to %s" % [url, client]
186:             end
187: 
188:             unless mount.path_exists?(path, client)
189:                 mount.debug "#{mount} reported that #{path} does not exist"
190:                 return ""
191:             end
192: 
193:             links = links.intern if links.is_a? String
194: 
195:             if links == :ignore and FileTest.symlink?(path)
196:                 mount.debug "I think that #{path} is a symlink and we're ignoring them"
197:                 return ""
198:             end
199: 
200:             str = mount.read_file(path, client)
201: 
202:             if @local
203:                 return str
204:             else
205:                 return CGI.escape(str)
206:             end
207:         end