Reuse change from deprecated code instead of a loop, should suffice

This commit is contained in:
mstrankowski 2023-10-26 13:51:52 +02:00
parent 52147b7e51
commit 9104066d25

View File

@ -230,7 +230,7 @@ public class FileManager
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);
}