question: 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 ( ) ) ; } }
target:  Verify whether directory already exists or not. if it is not there create one.