public static boolean makeDirsIfNeeded(File dir){
  return dir.exists() || dir.mkdirs();
}

public static boolean makeDirsIfNeeded ( File dir ) { return dir . exists ( ) || dir . mkdirs ( ) ; }
create a new directory if not exists .
