Topic "Issue with -latest switch"

Author Message
dkratter14
[View user's profile]

Joined: 2017-01-10
Posts: 1
WinSCP 5.9.3

I'm trying to download the latest files that match a mask.

Code:
"open sftp://user:pass@host:port" "get /path/to/abc_*.csv /path/to/xyz_*.csv d:\downloads\ -latest" "exit"


I want it to get the latest file that matches abc_*.csv AND ALSO get the latest file that matches xyz_*.csv. So it should download two different files.

However, the behavior seems to be that it gets the latest file that matches abc_*.csv OR xyz_*.csv. It downloads one file.

Is this the expected behavior? Is there some way to get it to download two files?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25966
Location: Prague, Czechia
Yes, this is an expected behavior. To get two files, use two get commands, each with one of the masks.
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