ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
Hi everybody,

I need help with an advanced download script i have to make. The situation is as following:

We have a FTP server external hosted. Our application for customers uploads the data to the ftp server.
Remote folderstructure:
  • /Uploads (not seen by ftp user)
    • /000125647
      • file1.extension
      • file2.extension
      • etc.
    • /000478964
      • etc.
What i have to achieve:

1. Each folder has to be downloaded ONCE! If already downloaded, download not again in future sessions
2. Folders older then one week have to be deleted.

Number 1 i thought to be achive to rename the folder to foldername.downloaded after a succesfull download.
Besides it, exclude dowload of folders with .downloaded suffix.

Number 2 i thought to be achive to check for folders with .download suffix and a date/time stamp.

Is it possible to achive what i want?

Thanks in advance.