getDefaultDir

fun getDefaultDir(context: Context): SafeFile?

Gets the default download path as an UniFile. Vital for legacy downloads, be careful about changing anything here.

As of writing UniFile is used for everything but download directory on scoped storage. Special ContentResolver fuckery is needed for that as UniFile doesn't work.