boolean (Change change) { ContentRevision revB = change.getBeforeRevision(); ContentRevision revA = change.getAfterRevision(); return revA != null && revA.getFile().isDirectory() || revB != null && revB.getFile().isDirectory(); }