I would like to get external root path. I got it like that:
root = File(Environment.getExternalStorageDirectory().absolutePath)
but after release android 10 it has become deprecated. I know that you will say that here I could find a lot of solutions but I didn't manage to solve my problem :( The most popular solution is that:
ContextCompat.getExternalFilesDir(String)
but this solution didn't help me. I also saw these questions: question_1,question_2 and documentation. The one solution which I see is to write smth like that: /storage/emulated/0/
and maybe it will do what I want. But maybe you have better solution for this task?