# File lib/puppet/network/handler/fileserver.rb, line 169
169:     def retrieve(url, links = :ignore, client = nil, clientip = nil)
170:       links = links.intern if links.is_a? String
171: 
172:       mount, path = convert(url, client, clientip)
173: 
174:       mount.info "Sending #{url} to #{client}" if client
175: 
176:       unless mount.path_exists?(path, client)
177:         mount.debug "#{mount} reported that #{path} does not exist"
178:         return ""
179:       end
180: 
181:       links = links.intern if links.is_a? String
182: 
183:       if links == :ignore and FileTest.symlink?(path)
184:         mount.debug "I think that #{path} is a symlink and we're ignoring them"
185:         return ""
186:       end
187: 
188:       str = mount.read_file(path, client)
189: 
190:       if @local
191:         return str
192:       else
193:         return CGI.escape(str)
194:       end
195:     end