Size wildcard in scripts

Advertisement

crishog
Joined:
Posts:
2
Location:
London

Size wildcard in scripts

I'm trying to download a series of .tgz files overnight & I have a working script

One or two are very large & sometimes fail. Not really a big problem, but what I'd like to do is download the many small ones & then attempt the bigger files - at least if it fails I've only a couple to deal with.

I've tried using a mask on the get

get *.tgz<100M

to get then smaller files, but this simply does nothing at all

Am I misunderstanding this mask or does it not work with a script?

Reply with quote

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

Re: Size wildcard in scripts

Thanks for your post. This issue is being tracked already.

Meanwhile this should work:
option exclude >100M
get *.tgz
_________________
Martin Prikryl

Reply with quote

crishog
Joined:
Posts:
2
Location:
London

Re: Size wildcard in scripts

martin wrote:

Thanks for your post. This issue is being tracked already.

Meanwhile this should work:
option exclude >100M
get *.tgz

I'm relatively new to using WinSCP, so I should have checked the issues first, my apologies.

Thanks for the alternative, much appreciated.

Chris

Reply with quote

Advertisement

You can post new topics in this forum