File watcher

0
Hi,   1. I have a requirement to monitor the  shared folder to check file exists and to get that file into mendix. 2.How to communicate with the shared folder, any modules/connectors are available. (Shared folder would be HULFT/FTP but not having much clarity).   Any ideas and suggestions would be helpful.   Thanks in advance.      
asked
1 answers
0

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 !! 

answered