From 539bb4a0d59db95676a3c278e6658bbdd8e19126 Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 8 Oct 2024 12:58:54 +0530 Subject: [PATCH] delete residual files after download --- app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt b/app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt index 059a17639..a8a760268 100644 --- a/app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt +++ b/app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt @@ -362,6 +362,7 @@ class EditorFragment : BaseBindingFragment() { } try { artifact.downloadArtifact(project.libDir) + project.libDir.walk().filter { it.extension != "jar" }.forEach { it.delete() } sheet.dismiss() } catch (e: Exception) { e.printStackTrace()