You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: To the best of my knowledge, there is currently no way to retrieve the full URI (including http://...) of the returned resources by Sardine.list() without fiddling with strings.
Example:
for (DavResource res : sardine.list("http://dav/subfolder1")) {
System.out.println(res.getHref()); // /subfolder1/somefile.jpg
System.out.println(res.getPath()); // /subfolder1/somefile.jpg
System.out.println(res.getName()); // somefile.jpg
System.out.println(res.getHref().getHost()); // null
// Desired, but non-existant
System.out.println(res.getFullPath()); // http://dav/subfolder1/somefile.jpg
}
Hi there,
Thanks for the great library!
Issue: To the best of my knowledge, there is currently no way to retrieve the full URI (including http://...) of the returned resources by
Sardine.list()
without fiddling with strings.Example:
Workaround:
https://github.com/binwiederhier/syncany/blob/f25e7444064337134f04a23db2dc109dd1c6b6df/syncany-plugins/syncany-plugin-webdav/src/main/java/org/syncany/connection/plugins/webdav/WebdavTransferManager.java#L158
Best
Philipp
The text was updated successfully, but these errors were encountered: