'Best modern method to run a script after receiving an ftp'd file

I just starting writing a new interface where I need to process a file after it has been ftp'd into my server. Is incron better than inotify in the long run or should I choose something else? BTW, I am using vsftpd.

p.s. I have already looked at other articles at this site but most of them are over 5 years old. I'm looking for the best solution in 2022.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source