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); }