From 9104066d253a019646d67f3f851c5a50ba357ee1 Mon Sep 17 00:00:00 2001 From: mstrankowski Date: Thu, 26 Oct 2023 13:51:52 +0200 Subject: [PATCH] Reuse change from deprecated code instead of a loop, should suffice --- .../main/java/org/alfresco/transform/base/fs/FileManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/base/src/main/java/org/alfresco/transform/base/fs/FileManager.java b/engines/base/src/main/java/org/alfresco/transform/base/fs/FileManager.java index b5cf4f37b..bb1b56312 100644 --- a/engines/base/src/main/java/org/alfresco/transform/base/fs/FileManager.java +++ b/engines/base/src/main/java/org/alfresco/transform/base/fs/FileManager.java @@ -230,7 +230,7 @@ private static File getTempDir() final File systemTempDir = new File(systemTempDirPath); final File tempDir = new File(systemTempDir, dirName); - if (!tempDir.exists() && !tempDir.mkdirs()) + if (!tempDir.exists() && !tempDir.mkdirs() && !tempDir.exists()) { throw new RuntimeException("Failed to create temp directory: " + tempDir); }