123: def list(url, links = :ignore, recurse = false, ignore = false, client = nil, clientip = nil)
124: mount, path = convert(url, client, clientip)
125:
126: mount.debug "Listing #{url} for #{client}" if client
127:
128: return "" unless mount.path_exists?(path, client)
129:
130: desc = mount.list(path, recurse, ignore, client)
131:
132: if desc.length == 0
133: mount.notice "Got no information on //#{mount}/#{path}"
134: return ""
135: end
136:
137: desc.collect { |sub| sub.join("\t") }.join("\n")
138: end