我打电话给ClientProtocalException
时得到sardine.list
这是我的代码:
private void downloadFromWebdav(String webDavPath, String username, String password) throws IOException {
Sardine sardine = SardineFactory.begin(username, password);
List<DavResource> resources = sardine.list(webDavPath, 1);
for (DavResource res : resources) {
System.out.println(res);
}
}