public static boolean checkAndCreateFolder(String path){
  boolean created=false;
  try {
    FileFactory.FileType fileType=FileFactory.getFileType(path);
    if (FileFactory.isFileExist(path,fileType)) {
      created=true;
    }
 else {
      created=FileFactory.mkdirs(path,fileType);
    }
  }
 catch (  IOException e) {
    LOGGER.error(e.getMessage());
  }
  return created;
}

public static boolean checkAndCreateFolder ( String path ) { boolean created = false ; try { FileFactory . FileType fileType = FileFactory . getFileType ( path ) ; if ( FileFactory . isFileExist ( path , fileType ) ) { created = true ; } else { created = FileFactory . mkdirs ( path , fileType ) ; } } catch ( IOException e ) { LOGGER . error ( e . getMessage ( ) ) ; } return created ; }
this method will check and create the given path
