@Override
  public void after() {
    File directory = copyTo.get();
    if (directory != null && when.get().test(passed.get())) {
      File timestamp = new File(directory, String.valueOf(System.currentTimeMillis()));
      File destination = new File(timestamp, methodName.get());
      destination.mkdirs();

      copyTo(getRoot(), destination);
    }
    if (delete.get()) {
      super.after();
    }
  }
Specifies conditions under which {@code copyTo} is performed. Default is {@code FAIL}.

@param when the conditions under which {@code copyTo} is performed
@return a reference to this SerializableTemporaryFolder
geode-junit/src/main/java/org/apache/geode/test/junit/rules/serializable/SerializableTemporaryFolder.java