Topic "GET only files which are complete"

Author Message
labsy
[View user's profile]

Joined: 2012-02-16
Posts: 4
Location: Slovenia
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!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
labsy wrote:
- download only files, older than 10 minutes

The 5.0.6, coming out soon will allow file masks based on modification time.
http://winscp.net/tracker/show_bug.cgi?id=672
labsy
[View user's profile]

Joined: 2012-02-16
Posts: 4
Location: Slovenia
Excellent! Thank you very much!

So if I understand correctly, I will be able to do something like this:
Code:
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 Smile
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Actually not, it supports absolute time only now. But I'll add relative time too. It makes sense.
_________________
Martin Prikryl
labsy
[View user's profile]

Joined: 2012-02-16
Posts: 4
Location: Slovenia
That would be really great add-on! Very Happy
Going that way you'll create whole new FTP protocol, much better than oroginal Cool
azona

Guest


has this been implemented yet? and if so How do I use it..

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please read documentation:
http://winscp.net/eng/docs/file_mask#size_time

If that does not help, come back.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License