*/
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 ->