mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-26 17:24:47 +00:00
Reuse change from deprecated code instead of a loop, should suffice
This commit is contained in:
parent
52147b7e51
commit
9104066d25
@ -230,7 +230,7 @@ public class FileManager
|
|||||||
|
|
||||||
final File systemTempDir = new File(systemTempDirPath);
|
final File systemTempDir = new File(systemTempDirPath);
|
||||||
final File tempDir = new File(systemTempDir, dirName);
|
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);
|
throw new RuntimeException("Failed to create temp directory: " + tempDir);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user