ensure that parent directories will be created

This commit is contained in:
marhali 2022-05-31 21:16:05 +02:00
parent c03d97f3e8
commit 090b7a0216

View File

@ -63,6 +63,7 @@ public abstract class FolderStrategy {
*/ */
protected @NotNull VirtualFile constructFile(@NotNull String parent, @NotNull String child) throws IOException { protected @NotNull VirtualFile constructFile(@NotNull String parent, @NotNull String child) throws IOException {
File file = new File(parent, child); File file = new File(parent, child);
file.getParentFile().mkdirs();
boolean exists = file.createNewFile(); boolean exists = file.createNewFile();
VirtualFile vf = exists VirtualFile vf = exists