# File lib/puppet/network/handler/fileserver.rb, line 484
484:       def fileobj(path, links, client)
485:         obj = nil
486:         if obj = @files[file_path(path, client)]
487:           # This can only happen in local fileserving, but it's an
488:           # important one.  It'd be nice if we didn't just set
489:           # the check params every time, but I'm not sure it's worth
490:           # the effort.
491:           obj[:audit] = CHECKPARAMS
492:         else
493: 
494:           obj = Puppet::Type.type(:file).new(
495: 
496:             :name => file_path(path, client),
497: 
498:             :audit => CHECKPARAMS
499:           )
500:           @files[file_path(path, client)] = obj
501:         end
502: 
503:         if links == :manage
504:           links = :follow
505:         end
506: 
507:         # This, ah, might be completely redundant
508:         obj[:links] = links unless obj[:links] == links
509: 
510:         obj
511:       end