L
lowenbrau
Hi,
I have encountered something interesting. In order to create a directory within another directory, the parent directory must be created first. For example:
File f = new File ("parent directory/child directory");
f.mkdir();
DOES NOT WORK
File f = new File ("parent directory");
f1.mkdir();
f = new File ("parent directory/child directory");
f.mkdir();
THIS WORKS
QUESTION:
is there a way to do it without explicitly creating the parent directory first?
Cheers
ST
I have encountered something interesting. In order to create a directory within another directory, the parent directory must be created first. For example:
File f = new File ("parent directory/child directory");
f.mkdir();
DOES NOT WORK
File f = new File ("parent directory");
f1.mkdir();
f = new File ("parent directory/child directory");
f.mkdir();
THIS WORKS
QUESTION:
is there a way to do it without explicitly creating the parent directory first?
Cheers
ST