private void checkAndCreateDirectory(final String directoryName){
  try {
    final File dir=new File(directoryName);
    if (!dir.exists() && dir.mkdirs()) {
      _logger.debug("Debug dump directory created successfully.");
    }
  }
 catch (  Exception ex) {
    _logger.error("Debug dump directory creation failed due to {}",ex.getMessage());
  }
}

private void checkAndCreateDirectory ( final String directoryName ) { try { final File dir = new File ( directoryName ) ; if ( ! dir . exists ( ) && dir . mkdirs ( ) ) { _logger . debug ( "Debug dump directory created successfully." ) ; } } catch ( Exception ex ) { _logger . error ( "Debug dump directory creation failed due to {}" , ex . getMessage ( ) ) ; } }
verify whether directory already exists or not . if it is not there create one .
