Skip to content

Commit

Permalink
delete residual files after download
Browse files Browse the repository at this point in the history
  • Loading branch information
PranavPurwar authored Oct 8, 2024
1 parent 7886eb0 commit 539bb4a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ class EditorFragment : BaseBindingFragment<FragmentEditorBinding>() {
}
try {
artifact.downloadArtifact(project.libDir)
project.libDir.walk().filter { it.extension != "jar" }.forEach { it.delete() }
sheet.dismiss()
} catch (e: Exception) {
e.printStackTrace()
Expand Down

0 comments on commit 539bb4a

Please sign in to comment.