private void checkCancellation(CancellationRequest cancellationRequest, File tempStore) throws IOException { if (cancellationRequest.cancellationRequested()) { cleanDirectory(tempStore); } }