@Override
public Boolean createOrPropagate(Throwable t) throws Exception {
if (HttpUtils.contains404(t)) {
return true;
}
AtmosResponseException exception = getFirstThrowableOfType(t, AtmosResponseException.class);
if (exception != null && exception.getError().getCode() == AtmosErrorCode.DIRECTORY_NOT_EMPTY.getCode()) {
return false;
}
throw propagate(t);
}