indexes: cleanup

GitOrigin-RevId: 5f68e4201b07a7a285b73a82b64434b67e68acbc
This commit is contained in:
Dmitro Batko
2020-02-20 09:52:35 +03:00
committed by intellij-monorepo-bot
parent 081e14df40
commit 4937676f78

View File

@@ -143,11 +143,10 @@ public class ResizeableMappedFile implements Forceable {
return new DataOutputStream(Files.newOutputStream(lengthFile));
}
catch (NoSuchFileException ex) {
final File parentFile = lengthFile.getParent().toFile();
if (!parentFile.exists()) {
Path parent = lengthFile.getParent();
if (!Files.exists(parent)) {
if (!parentWasCreated) {
parentFile.mkdirs();
Files.createDirectories(parent);
parentWasCreated = true;
}
else {