public void writeContentTo(String path, File toPathDir) throws IOException {
		File script = new File(path);
		if (script.exists() && script.isDirectory()) {
			return;
		}
		copyFileToDirectory(script, toPathDir);
	}
Copy file to the given path.

This method only work for the file not dir.

@param path      path of resource.
@param toPathDir file dir path to write.
ngrinder-controller/src/main/java/org/ngrinder/script/repository/GitHubFileEntryRepository.java