mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[generator] Fix race condition when creating directories in JavaIoFileSystemAcces
Signed-off-by: Bernhard Stadler <bernhard.stadler@itemis.de>
This commit is contained in:
parent
effbb402a1
commit
100f6e0eef
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ public class JavaIoFileSystemAccess extends AbstractFileSystemAccess2 {
|
|||
}
|
||||
|
||||
protected void createFolder(File parent) {
|
||||
if (parent != null && !parent.exists() && !parent.mkdirs())
|
||||
if (parent != null && !parent.mkdirs() && !parent.isDirectory())
|
||||
throw new RuntimeIOException("Could not create directory " + parent);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue