Check for new files on FTP-Server

I have created a complex workflow that handles files in a directory on a FTP server. When they are completely processed, they are moved to a subfolder to prevent processing them again.

How can I check if there are new files on this server? Right now me only idea would be to set a cron node and check every n minutes, but every check would create an incomplete workflow execution, right?
The file system trigger would be cool, but it is only for the local system where n8n is running I guess.

Information on your n8n setup

  • n8n version: 1.15.2
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 22.04

Hey @mokkin,

I would do pretty much what you have suggested and get the list of files and check if the modfied date of the file is since the last run. If a workflow doesn’t finish it doesn’t really matter it won’t show as an error so you have nothing to worry about there.