I've investigated this issue for couple of hours and couldn't find a way to store files in arbitrary directory in Android 10 that I could verify is working (I've tested it on my Android 10 device).
This is a workaround that saves Android 10 images in Android/PACKAGE_NAME/data/files directory.
It is far from perfect, but it's still better than no saving at all.
I've investigated this issue for couple of hours and couldn't find a way to store files in arbitrary directory in Android 10 that I could verify is working (I've tested it on my Android 10 device). This is a workaround that saves Android 10 images in Android/PACKAGE_NAME/data/files directory. It is far from perfect, but it's still better than no saving at all.