Skip to content

Commit

Permalink
Utils: add a recursive directory delete helper
Browse files Browse the repository at this point in the history
re #6
  • Loading branch information
bk138 committed Aug 15, 2024
1 parent 33d6af7 commit b6cb8ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/net/christianbeier/droidvnc_ng/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,10 @@ object Utils {
}
}

@JvmStatic
fun deleteRecursively(directory: String) {
val directory = File(directory)
directory.deleteRecursively()
}

}

0 comments on commit b6cb8ee

Please sign in to comment.