if (recurse) WebDAVUtil.makePath(to.substring(0, to.lastIndexOf("/")));
// copy the resource
WebdavResource resource = WebDAVUtil.getWebdavResource(from);
resource.setOverwrite(overwrite);
if (!resource.copyMethod(relativeDestination)) {
throw new HttpException("Error copying resource: " + from
+ " Status: " + resource.getStatusCode()
+ " Message: " + resource.getStatusMessage());
}
}