lookfirst/sardine

ClientProtocalException when using sardine to download some files from webDav

khaledAKA opened this issue · 0 comments

Here is my code.
I make sure that the credentials is correct

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);
        }
    }