Hi Imthiyaz H,
If you want the sharing to be happening in real-time.
I would go with this approach. Write a Python script that watches your directory for every X seconds and then call a Rest API if a new file is found.
Publish a Rest API In Mendix use that API in your Python script.
For Automating the Script:
Create a Shortcut to the Python Script and add it to the Startup folder, and then create a task scheduler to run it in the background.
For the Python script, for Script, I Quickly used Chat-Gpt. You can also do the same and tweak the script according to your needs.
Test and see if it works and how the performance is.
ATB !!