У меня есть файл EN.quickdic
в расположении ниже
Если я проверю, существует ли файл -> Он всегда возвращает FALSE
val dirPath: String = context.filesDir.absolutePath
val filePath = dirPath.plus("/$Constants.DICTIONARY_FILE")
// - > /data/user/0/com.cnx.dictionarytool/files/EN.quickdic
val file = File(filePath)
// Check if file does not exists
if (file.exists()) {
// -------------------- > This is still not true even if file is present
}
Вопрос : Как проверить, существует ли файл там