mkdir and mkdirs return false if the directory already exists, so that might be one reason for the failure.
If you are using Java 7, you can use the Files class. It throws an IOException on error with pretty good descriptions.
Files.createDirectory(file.toPath());
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…