My Question is relevant to Android Scooped Storage versions such as API 29 and beyond.
I have a to add a media file in which is being received from the Network server , the network server tells me that file is say for example 100 MB ,
I need to add this file to External Public Storage Directory ( Music) through mediaStore API. I understand we can not access File API in public Storage Directories
How can I get to know if there is enough disk space available ? So that I can take the file from Network server and add it to mediaStore without any errors