public boolean ensureExtractedArchiveDirectory(String extractedArchivesPath) {

    File extractedArchiveDir = archiveUtility.getFile(extractedArchivesPath);

    return extractedArchiveDir.exists() || extractedArchiveDir.mkdir();
  }
Ensure that the extracted view archive directory exists.

@param extractedArchivesPath  the path

@return false if the directory does not exist and can not be created
ambari-server/src/main/java/org/apache/ambari/server/view/ViewExtractor.java