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") Please refer to the product specifications. In this way, free HiDrive accounts are not supported. In some webdav servers like owncloud the date of the uploaded file is preserved. Connection with HiDrive uses the rsync protocol for data transfer. Air Explorer has added Strato HiDrive, a german cloud server with. Connection with the HiDrive server is encrypted by default. The following code is supposed to upload the file. Backup files are stored in the Folder selected on the HiDrive server, put to directory of your choosing. 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. Only 49.99 Download-Version Buy now Upgrade Now Overview Details Screenshots Languages Requirements One thing youll notice right away with Ashampoo® Backup Pro 15: A lot has changedfor the better The user interface has been decluttered and now focuses on essential items. 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. Because then its safe and simple to drag and drop files. ![]() I have a cloud storage at strato namely hidrive. I can upload files if I login at and it also worked for me to use FTP, but i would like to mount a folder and that should be possible with webdav.
0 Comments
Leave a Reply. |