public static void cleanDirectoryIgnoreException(File directory){
  try {
    FileUtils.cleanDirectory(directory);
  }
 catch (  Exception e) {
    LOGGER.warn(String.format("Failed to clean \"%s\" directory.",directory),e);
  }
}

public static void cleanDirectoryIgnoreException ( File directory ) { try { FileUtils . cleanDirectory ( directory ) ; } catch ( Exception e ) { LOGGER . warn ( String . format ( "Failed to clean \"%s\" directory." , directory ) , e ) ; } }
cleans a directory without deleting it . this method does not fail in case cleaning is unsuccessful , but simply logs the exception information as a warning .
