public static boolean createFolder(File targetFolder){
  if (targetFolder.exists()) {
    if (targetFolder.isDirectory())     return true;
    targetFolder.delete();
  }
  return targetFolder.mkdirs();
}

public static boolean createFolder ( File targetFolder ) { if ( targetFolder . exists ( ) ) { if ( targetFolder . isDirectory ( ) ) return true ; targetFolder . delete ( ) ; } return targetFolder . mkdirs ( ) ; }
create a folder , if the folder exists is not created .
