return total;
}
protected long copy(Directory from, Directory to, String src, String dest, Context context, long totalBytesCopied,
long totalBytesToCopy, long startTime) throws IOException {
IndexOutput os = to.createOutput(dest, new IOContext());
IndexInput is = from.openInput(src, new IOContext());
IOException priorException = null;
try {
return copyBytes(is, os, is.length(), context, totalBytesCopied, totalBytesToCopy, startTime, src);
} catch (IOException ioe) {
priorException = ioe;