Private static final String REDIRECT_METHODS = new String else if (method. I had to extend the ".client.LaxRedirectStrategy" and also the getRedirect() Method of .client.DefaultRedirectStrategy with a treatment of the needed methods: PUT, MKOL, etc. Please either help me fix my code or link me to some file synchronization library that works for my purpose. Printing out the folders in that directory works so the connection/ authentication did succeed: List resources = sardine.list("") but throws an exception instead: Exception in thread "main" .SardineException: Unexpected response (301 Moved Permanently)Īt .(ValidatingResponseHandler.java:48)Īt .(VoidResponseHandler.java:34)Īt .(VoidResponseHandler.java:1)Īt .(CloseableHttpClient.java:218)Īt .(CloseableHttpClient.java:160)Īt .SardineImpl.execute(SardineImpl.java:828)Īt .SardineImpl.put(SardineImpl.java:755)Īt .SardineImpl.put(SardineImpl.java:738)Īt .SardineImpl.put(SardineImpl.java:726)Īt .SardineImpl.put(SardineImpl.java:696)Īt .SardineImpl.put(SardineImpl.java:689)Īt .SardineImpl.put(SardineImpl.java:682)Īt .SardineImpl.put(SardineImpl.java:676) InputStream fis = new FileInputStream(new File("some/file/test.txt")) Sardine sardine = SardineFactory.begin("username", "password") The following code is supposed to upload the file. Is there any code for hard-copying a local source folder to an external cloud folder? I haven't found anything in that direction. I'm therefore trying to implement it in Java using the Sardine project. To configure this type of synchronization: select 'WebDAV' in the Service drop-down. ![]() it uses an old zotero protocol to sync the files with the WebDav servers. ![]() The client application they provide is poor and buggy so I tried various other tools for synchronization but none just worked the way I need it. This type of synchronization lets you use a WebDAV server as synchronization storage. If you are looking to fix the Papership WebDav server error that says Cannot. ![]() I have a cloud storage at strato namely hidrive.
0 Comments
Leave a Reply. |