public void writeContentTo(User user, String path, File toPathDir) {
		SVNClientManager svnClientManager = null;

		try {
			svnClientManager = getSVNClientManager();

			SVNURL userRepoUrl = SVNURL.fromFile(getUserRepoDirectory(user));
			SVNRepository repo = svnClientManager.createRepository(userRepoUrl, true);
			SVNNodeKind nodeKind = repo.checkPath(path, -1);
			// If it's DIR, it does not work.
			if (nodeKind == SVNNodeKind.NONE || nodeKind == SVNNodeKind.DIR) {
				throw processException("It's not possible to write directory. nodeKind is " + nodeKind);
			}
			//noinspection ResultOfMethodCallIgnored
			toPathDir.mkdirs();
			File destFile = new File(toPathDir, FilenameUtils.getName(path));
			// Prepare parent folders
			try (FileOutputStream fileOutputStream = new FileOutputStream(destFile)) {
				SVNProperties fileProperty = new SVNProperties();
				// Get file.
				repo.getFile(path, -1L, fileProperty, fileOutputStream);
			}

		} catch (Exception e) {
			LOG.error("Error while fetching files from SVN", e);
			throw processException("Error while fetching files from SVN", e);
		} finally {
			closeSVNClientManagerQuietly(svnClientManager);
		}
	}
Copy {@link FileEntry} to the given path.

This method only work for the file not dir.

@param user      user
@param path      path of {@link FileEntry}
@param toPathDir file dir path to write.
ngrinder-controller/src/main/java/org/ngrinder/script/repository/FileEntryRepository.java