Hanbit the Developer
[Kotlin] Delete whole directory in android 본문
val dir = File(requireContext().getExternalFilesDir(null).toString() + "/YOUR_DIRECTORY")
dir.deleteRecursively()
Just use File().deleteRecursively()
'Android' 카테고리의 다른 글
[Kotlin] Implementation Retrofit2 Callback Function (0) | 2021.10.01 |
---|---|
[Kotlin] RecyclerView in SwipeRefreshLayout in NestedScrollView Implementation (0) | 2021.09.24 |
[Kotlin] Get URI from byte array in android (0) | 2021.08.19 |
[Kotlin] How to make 'instagram comment layout' using Span. (0) | 2021.08.10 |
[Kotlin] Set indent to first line of TextView in android (0) | 2021.08.10 |