ensure that parent directories will be created
This commit is contained in:
parent
c03d97f3e8
commit
090b7a0216
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user