As already explained many times,
Google forces apps to use the storage access framework for file operations.
Apps can only call Android file browser and nothing more.
Meaning that Android controls file operations (not apps).
Do not use overwrite, it is not even advertised by Google.