65: def describe(url, links = :follow, client = nil, clientip = nil)
66: links = links.intern if links.is_a? String
67:
68: mount, path = convert(url, client, clientip)
69:
70: mount.debug("Describing %s for %s" % [url, client]) if client
71:
72:
73: return "" unless full_path = mount.file_path(path, client)
74:
75: metadata = Puppet::FileServing::Metadata.new(url, :path => full_path, :links => links)
76:
77: return "" unless metadata.exist?
78:
79: begin
80: metadata.collect
81: rescue => detail
82: puts detail.backtrace if Puppet[:trace]
83: Puppet.err detail
84: return ""
85: end
86:
87: return metadata.attributes_with_tabs
88: end