Merge "Add declarative acceptance tests"
[ccsdk/cds.git] / ms / controllerblueprints / modules / blueprint-core / src / main / kotlin / org / onap / ccsdk / cds / controllerblueprints / core / utils / BluePrintArchiveUtils.kt
index dcfa07f..2f082db 100755 (executable)
@@ -53,6 +53,9 @@ class BluePrintArchiveUtils {
          */
         fun compress(source: File, destination: File): Boolean {
             try {
+                if(!destination.parentFile.exists()) {
+                    destination.parentFile.mkdirs()
+                }
                 destination.createNewFile()
                 val ignoreZipFiles = Predicate<Path> { path -> !path.endsWith(".zip") && !path.endsWith(".ZIP") }
                 FileOutputStream(destination).use { out ->