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
}