When you try to create a folder in the files folder
val dir = getDir("files", Context.MODE_PRIVATE) val file = File(dir, "mydir") file.mkdir()
folder app_files / mydir is created. It turns out in the files folder it is impossible to create nested folders, only file creation is available? If you create a separate folder in the root directory for the filesDir application, will it be a private folder?