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:
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.
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.
- /000125647
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.