import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.apache.commons.io.FileUtils
-import org.onap.ccsdk.cds.controllerblueprints.core.utils.BlueprintArchiveUtils
+import org.onap.ccsdk.cds.controllerblueprints.core.utils.BluePrintArchiveUtils
import java.io.File
import java.io.InputStream
import java.nio.charset.Charset
// this.mkdirs()
FileUtils.forceMkdir(this)
check(this.exists()) {
- throw BlueprintException("failed to re create dir(${this.absolutePath})")
+ throw BluePrintException("failed to re create dir(${this.absolutePath})")
}
return this
}
* Compress the current Dir to the target zip file and return the target zip file
*/
fun File.compress(targetZipFile: File): File {
- BlueprintArchiveUtils.compress(this, targetZipFile)
+ BluePrintArchiveUtils.compress(this, targetZipFile)
return targetZipFile
}
* De-Compress the current zip file to the target file and return the target file
*/
fun File.deCompress(targetFile: File): File {
- BlueprintArchiveUtils.deCompress(this, targetFile.path)
+ BluePrintArchiveUtils.deCompress(this, targetFile.path)
return targetFile
}