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