I would like to make a script to upload files to a ftp
This file should be uploaded one time per day to a specific time.
- erp software creates those files 3 times per day (1. at 9am, 2. at 1pm, 3. at 5pm)
- Files are stored to specific folder on ERP server (windows server 2019) with a changing filename(includes timestamp) f.e. =stockkeeping_270121_1700 / stockkeeping_260121_1300
- I only want to upload the file from 5pm to the ftp, so the script should ignore the files that are created before.
- As filenames differ, I have to make a script which uses the file directory, rather than the file-name.
any idea? I discovered that python & ftplib can be used to upload files to ftp, but I'm not sure if this can fulfill this special requirements.
br mehlo