GET only files which are complete
Hi,
I found WinSCP a really great tool for automated download files from FTP.
But I have problem:
Automated script runs every 15 minutes,
then it GET -delete *.*
and exits
Plain and simple. It downloads all newly uploaded files from FTP to my local computer.
PROBLEM?
If a file on FTP is just in the middle of upload process (some user is just uploading, but not yet finished), I get only part of file, truncated, not usable.
QUESTION:
Is there some idea how could I do either:
- download only files, older than 10 minutes
- or prevent GET command to execute if file is in the middle of some other upload process?
Thankyo!
I found WinSCP a really great tool for automated download files from FTP.
But I have problem:
Automated script runs every 15 minutes,
then it GET -delete *.*
and exits
Plain and simple. It downloads all newly uploaded files from FTP to my local computer.
PROBLEM?
If a file on FTP is just in the middle of upload process (some user is just uploading, but not yet finished), I get only part of file, truncated, not usable.
QUESTION:
Is there some idea how could I do either:
- download only files, older than 10 minutes
- or prevent GET command to execute if file is in the middle of some other upload process?
Thankyo!