Have you tried this?
file.getParentFile().mkdirs();
file.createNewFile();
I don’t know of a single method call that will do this, but it’s pretty easy as two statements.
Have you tried this?
file.getParentFile().mkdirs();
file.createNewFile();
I don’t know of a single method call that will do this, but it’s pretty easy as two statements.