File tmpFile = createTempFile(generator);
if (root != null) {
InputStream contents = null;
OutputStream tmpOS = null;
try {
contents = root.getFileStreamForPath(new SVNDeltaCombiner(), path);
tmpOS = SVNFileUtil.openFileForWriting(tmpFile);
FSRepositoryUtil.copy(contents, tmpOS, myCancelHandler);
} finally {
SVNFileUtil.closeFile(contents);
SVNFileUtil.closeFile(tmpOS);