Download files from FTP - delete the file - not folder.

Hopefully Small, but for me a big problem.

Need to download xml-files that customers placing at our FTP.
I don't know the filename in advance and wants’ this to be automatic. Check and download files every 5th minute.

I've tried some different solutions. I need to delete the downloaded file, without delete the folder.

I have tried *.* and *.xml but it will not download the files. It's no problem to download the complete folder...

Any solution? Download unknown filename from a folder without deleting the folder - only the downloaded files.

Hello ..

You need to write a small script to realize this.

Regards,
Mat

Hello ..

You need to write a small script to realize this.

Regards,
Mat


Can I find any script that will work in the forum?

Nope. You need to write your own script. You can find a couple of examples in the FTP Library:
https://www.smartftp.com/ftplib

Regards,
Mat