public GHTree asTree() throws IOException {
		if (type.equals("tree"))
			return tree.repo.getTree(sha);
		else
			return null;
	}
If this tree entry represents a directory, then return it.
Otherwise null.
ngrinder-controller/src/main/java/org/kohsuke/github/GHTreeEntry.java