Is this check for a parent dir necessary? I don't think so according to the doc:

http://docs.oracle.com/javase/6/docs/api/java/io/File.html#mkdirs()

You should be able to call mkdirs directly.