Code:
String dir = //Path to the directory File saveDir = new File(dir); //Here comes the existence check if(!saveDir.exists()) saveDir.
Just make the call to mkdirs. It will not overwrite existing directories so really, your check is unecessary (and in any case, unreliable).
mkdirs