@KroMignon said in Issue with mkpath on Android:

@koahnig I guess the files are written under /data/user/0/<packagename>/files/

You are correct that this is the path shown with writableLocation. It is also generated under /storage/emulated/0/Android/data/<packagename>/files. However, you cannot simply this /data/user/0/<packagename>/files/ for absolute path' with ofstream under C++. These files are not generated.

I was previously wrong. The issue is the same for Android 9 and Android 10.

When using /storage/emulated/0/Android/data/<packagename>/files this might be used as basis for absolute path' generation and std::ofstream of C++.