GET only files which are complete

Advertisement

labsy
Joined:
Posts:
4
Location:
Slovenia

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!

Reply with quote

Advertisement

labsy
Joined:
Posts:
4
Location:
Slovenia

Re: GET only files which are complete

Excellent! Thank you very much!

So if I understand correctly, I will be able to do something like this:
GET -delete -minage=10 *.*    
So GET will process only files, which minimum age is 10 minutes.
Awaiting new version...

And your response time is also excellent, great job, which makes my eyes to search for "Donate" button :)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: GET only files which are complete

Actually not, it supports absolute time only now. But I'll add relative time too. It makes sense.
_________________
Martin Prikryl

Reply with quote

labsy
Joined:
Posts:
4
Location:
Slovenia

That would be really great add-on! :D
Going that way you'll create whole new FTP protocol, much better than oroginal 8)

Reply with quote

Advertisement

You can post new topics in this forum