Is there an easy way to get the files directory in...
# multiplatform
d
Is there an easy way to get the files directory in an android and ios app. I tried using doing something like this: // commonMain
Copy code
expect class PathProvider {
    fun getFilesDir(): String
}
// androidMain
Copy code
actual class PathProvider(
    private val context: Context
) {
    actual fun getFilesDir(): String {
        TODO("Not yet implemented")
    }
}
and the add it to platform specific modules in Koin (and give context for android). But it doesn't work like this because there is no constructor. I've tried different ways with object and interface, but I couldn't get anything to work.
BTW for koin questions better direct them to #C67HDJZ2N